| Localization library | |||||||||||||||||||||||||
| Regular expressions library(C++11) | |||||||||||||||||||||||||
| Formatting library(C++20) | |||||||||||||||||||||||||
| Null-terminated sequence utilities | |||||||||||||||||||||||||
| Byte strings | |||||||||||||||||||||||||
| Multibyte strings | |||||||||||||||||||||||||
| Wide strings | |||||||||||||||||||||||||
| Primitive numeric conversions | |||||||||||||||||||||||||
| |||||||||||||||||||||||||
| Text encoding identifications | |||||||||||||||||||||||||
| |||||||||||||||||||||||||
| Functions | ||||||||||||||||||||||||||
| Character classification | ||||||||||||||||||||||||||
| Character manipulation | ||||||||||||||||||||||||||
| Conversions to numeric formats | ||||||||||||||||||||||||||
|
| |||||||||||||||||||||||||
| String manipulation | ||||||||||||||||||||||||||
| String examination | ||||||||||||||||||||||||||
| Array manipulation | ||||||||||||||||||||||||||
Defined in header <cwctype> | ||
std::wctype_t wctype(constchar* str); | ||
Constructs a value of typestd::wctype_t that describes aLC_CTYPE category of wide character classification. It may be one of the standard classification categories, or a locale-specific category, such as"jkanji".
| str | - | C string holding the name of the desired category |
The following values ofstr are supported in all C locales:
value ofstr | effect |
"alnum" | identifies the category used bystd::iswalnum |
"alpha" | identifies the category used bystd::iswalpha |
"blank" | identifies the category used bystd::iswblank(C++11) |
"cntrl" | identifies the category used bystd::iswcntrl |
"digit" | identifies the category used bystd::iswdigit |
"graph" | identifies the category used bystd::iswgraph |
"lower" | identifies the category used bystd::iswlower |
"print" | identifies the category used bystd::iswprint |
"space" | identifies the category used bystd::iswspace |
"upper" | identifies the category used bystd::iswupper |
"xdigit" | identifies the category used bystd::iswxdigit |
std::wctype_t object suitable for use withstd::iswctype to classify wide characters according to the named category of the current C locale or zero ifstr does not name a category supported by the current C locale.
classifies a wide character according to the specifiedLC_CTYPE category(function)[edit] | |
C documentation forwctype | |