std::wctrans(3)
okay bestie, welcome to the std::wctrans(3) page from the C++ Standard Libary (yes, the header spells "Libary" like that β not me, I promise π). It's giving wide-character mapping, and we're gonna get through it together. π
β¨ NAME β¨
std::wctrans β std::wctrans
That's it. That's the name. Iconic minimalism. π
πΈ Synopsis πΈ
Defined in header <cwctype>
std::wctrans_t wctrans( const char* str );
So std::wctrans constructs a value of type std::wctrans_t that describes an LC_CTYPE category of wide character mapping. It may be one of the standard mappings, or a locale-specific mapping, such as "tojhira" or "tojkata". Slay. β¨
π Parameters π
strβ a C string holding the name of the desired mapping.
The following values of str are supported in all C locales:
"toupper"β identifies the mapping used bytowupper"tolower"β identifies the mapping used bytowlower
π Return value π
It gives you a std::wctrans_t object suitable for use with std::towctrans to map wide characters according to the named mapping of the current C locale.
Or it gives you zero if str does not name a mapping supported by the current C locale. Zero. As in, no mapping for you, bestie. π«Ά
π Example π
This section is incomplete.
Reason: no example
Not me staring at this blank example section like ποΈπποΈ β the page literally says no example. That's the whole tea. π΅
π See also π
towctransβ performs character mapping according to the specifiedLC_CTYPEmapping category (function).- C documentation for
wctrans.
π Category π
- Todo no example
Signing off with the source/version and date cuteness: this is the std::wctrans(3) page, source/version http://cppreference.com, dated 2024.06.10. Bye bestie, go map those wide characters responsibly ππ¦β¨
π¦ where this page comes from
- nixpkgs unstable: stdman 2024.07.05
- opensuse-leap 16.0: stdman 2024.07.05-bp160.1.9 Β· MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms