std::wctype
STD::wctype
Defined in header | | |
---|---|---|
std::wctype_t wctype( const char* str | | |
构造类型的值。std::wctype_t
描述LC[医]宽字符分类的类型分类。它可能是标准分类类别之一,也可能是特定于地区的类别,例如"jkanji"
...
参数
str | - | C string holding the name of the desired category |
---|
的下列值str
在所有C语言环境中都支持:
value of str | effect |
---|---|
"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 |
返回值
std::wctype_t
对象适合与std::iswctype
根据当前C语言环境的命名类别或0 if对宽字符进行分类str
不命名当前C语言环境支持的类别。
另见
iswctype | classifies a wide character according to the specified LC_CTYPE category (function) |
---|
c wctype文档
© cppreference.com
在CreativeCommonsAttribution下授权-ShareAlike未移植许可v3.0。