Name
towctrans function — Translates a wide character’s case
Synopsis
wint_t towctrans(wint_t wc, wctrans_t desc)
The towctrans
function
translates the wide character wc
according to the description desc
, which was returned from the wctrans
function. For example, the
towlower
function can be
implemented using towctrans
:
wint_t towlower(wint_t wc) { return std::towctrans(wc, std::wctrans("tolower")); }
See Also
Get C++ In a Nutshell now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.