wint_t towctrans( wint_t wc, wctrans_t desc );
(since C95)Maps the wide character wc using the current C locale's LC_CTYPE mapping category identified by desc.
[edit] Parameters wc - the wide character to map desc - the LC_CTYPE mapping, obtained from a call to wctrans [edit] Return valueThe mapped value of wc using the mapping identified by desc in LC_CTYPE facet of the current C locale.
[edit] Example#include <locale.h> #include <wctype.h> #include <wchar.h> #include <stdio.h> int main(void) { setlocale(LC_ALL, "ja_JP.UTF-8"); const wchar_t kana[] = L"ãã©ã¬ã"; size_t sz = sizeof kana / sizeof *kana; wchar_t hira[sz]; for (size_t n = 0; n < sz; ++n) hira[n] = towctrans(kana[n], wctrans("tojhira")); printf("katakana characters %ls are %ls in hiragana\n", kana, hira); }
Output:
katakana characters ãã©ã¬ã are ã²ãã㪠in hiragana[edit] References
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4