C++ Reference: Standard C++ Library reference: C Library: cwctype: wctype

人工智能21

C++官网参考链接:https://cplusplus.com/reference/cwctype/wctype/

函数

string passed as
property

descriptionequivalent function"alnum"alphanumerical character
iswalnum

"alpha"letter character
iswalpha

"blank"blank character
iswblank

"cntrl"control character
iswcntrl

"digit"decimal digit character
iswdigit

"graph"character with graphical representation
iswgraph

"lower"lowercase letter character
iswlower

"print"printable character
iswprint

"punct"punctuation character
iswpunct

"space"white-space character
iswspace

"upper"uppercase letter character
iswupper

"xdigit"hexadecimal digit character
iswxdigit

此函数返回的值取决于所选的LC_CTYPE的语言环境(locale)设置的类别。

形参
property
标识字符类别的字符串(见上面)。

返回值
类型为wctype_t的值,标识特定的字符类别。
该值与语言环境有关。

用例
/ wctype example /

include

C++ Reference: Standard C++ Library reference: C Library: cwctype: wctype

Original: https://blog.csdn.net/weixin_40186813/article/details/127520319
Author: weixin_40186813
Title: C++ Reference: Standard C++ Library reference: C Library: cwctype: wctype