std::towctrans (3) - Linux Man Pages
Defined in header <cwctype>
std::wint_t towctrans( std::wint_t wc, std::wctrans_t desc );
Maps the wide character wc using the current C locale's LC_CTYPE mapping category identified by desc.
If the value of ch is neither representable as a wchar_t nor equal to the value of the macro WEOF, the behavior is undefined.
ch - the wide character to map
desc - the LC_CTYPE mapping, obtained from a call to std::wctrans
The mapped value of ch using the mapping identified by desc in LC_CTYPE facet of the current C locale.
The following example demonstrates katakana to hiragana character mapping
// Run this code