From cppreference.com
std::wctype_twctype(constchar*str);Constructs a value of type std::wctype_t that describes a
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:
value of streffect "alnum"identifies the category used by
"alpha"identifies the category used by
"blank"identifies the category used by
(C++11)"cntrl"identifies the category used by
"digit"identifies the category used by
"graph"identifies the category used by
"lower"identifies the category used by
"print"identifies the category used by
"space"identifies the category used by
"upper"identifies the category used by
"xdigit"identifies the category used by
Return value
std::wctype_t object suitable for use with
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.
See also