wctype
来自cppreference.com
该页由英文版wiki使用Google Translate机器翻译而来。
该翻译可能存在错误或用词不当。鼠标停留在文本上可以看到原版本。你可以帮助我们修正错误或改进翻译。参见说明请点击这里. |
在头文件 <wctype.h> 中定义
|
||
wctype_t wctype( const char* str ); |
||
构造一个宽字符分类,描述了LC_CTYPE类别的类型wctype_t。这可能是一个标准的分类,或区域设置特定的类别,如
"jkanji"
.原文:
Constructs a value of type 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"
.[编辑] 参数
str | - | C字符串保持所需的类别的名称
原文: C string holding the name of the desired category |
str
支持所有的C语言环境:下面的值原文:
The following values of
str
are supported in all C locales: 值的
str |
effect |
"alnum"
|
|
"alpha"
|
|
"blank"
|
|
"cntrl"
|
|
"digit"
|
|
"graph"
|
|
"lower"
|
|
"print"
|
|
"space"
|
|
"upper"
|
|
"xdigit"
|
[编辑] 返回值
wctype_t适合使用iswctype宽字符分类,根据目前的C语言环境或零到指定的类别对象
str
没有指定类别的C语言环境支持.原文:
wctype_t object suitable for use with 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.[编辑] 另请参阅
一个宽字符分类到指定的LC_CTYPE类别 原文: classifies a wide character according to the specified LC_CTYPE category (函数) | |
C++ documentation for wctype
|