首页
学习
活动
专区
工具
TVP
发布
精选内容/技术社群/优惠产品,尽在小程序
立即前往

std::wctype

Defined in header <cwctype>

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文档

代码语言:txt
复制
 © cppreference.com

在CreativeCommonsAttribution下授权-ShareAlike未移植许可v3.0。

扫码关注腾讯云开发者

领取腾讯云代金券