towctrans function — Translates a wide character's case
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")); }