std::towctrans - cppreference.com (original) (raw)

Maps the wide character ch 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.

[edit] Parameters

[edit] Return value

The mapped value of ch using the mapping identified by desc in LC_CTYPE facet of the current C locale.

[edit] Example

The following example demonstrates katakana to hiragana character mapping.

Output:

katakana characters ヒラガナ are ひらがな in hiragana

[edit] See also