std::wctrans(3)

πŸ“¦ version 2024.07.05, in nixpkgs unstable, opensuse-leap 16.0

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 by towupper
  • "tolower" β€” identifies the mapping used by towlower

πŸ’– 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 specified LC_CTYPE mapping 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