std::wctype(3)

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

πŸŽ€ NAME πŸŽ€

std::wctype - std::wctype β€” bestie, that's literally the whole name, and this is the std::wctype(3) page from the C++ Standard Library. No cap, we're doing wide-character category lookup today πŸ’….

✨ Synopsis ✨

Defined in header <cwctype>.

std::wctype_t wctype( const char* str );

Okay so std::wctype constructs a value of type std::wctype_t that describes a LC_CTYPE category of wide character classification. It may be one of the standard classification categories, or a locale-specific category, such as "jkanji" 🌸.

🌟 Parameters 🌟

  • str β€” C string holding the name of the desired category.

The following values of str are supported in all C locales:

  • "alnum" β€” identifies the category used by std::iswalnum
  • "alpha" β€” identifies the category used by std::iswalpha
  • "blank" β€” identifies the category used by std::iswblank (C++11)
  • "cntrl" β€” identifies the category used by std::iswcntrl
  • "digit" β€” identifies the category used by std::iswdigit
  • "graph" β€” identifies the category used by std::iswgraph
  • "lower" β€” identifies the category used by std::iswlower
  • "print" β€” identifies the category used by std::iswprint
  • "space" β€” identifies the category used by std::iswspace
  • "upper" β€” identifies the category used by std::iswupper
  • "xdigit" β€” identifies the category used by std::iswxdigit

πŸ’– Return value πŸ’–

A std::wctype_t object suitable for use with std::iswctype to classify wide characters according to the named category of the current C locale, or zero if str does not name a category supported by the current C locale. Slay πŸ’….

🫢 See also 🫢

  • iswctype β€” classifies a wide character according to the specified LC_CTYPE category (function).
  • C documentation for wctype.

mwah πŸ’‹ and that's the whole page, bestie. Source: http://cppreference.com; version/date: 2024.06.10. Byeeee! πŸ¦‹

πŸ“¦ where this page comes from