iswctype -- Test for Character Property

Format

#include <wctype.h>
int iswctype(wint_t wc, wctype_t wc_prop);

Language Level: ANSI 93, XPG4
iswctype determines whether the wide character wc has the property wc_prop. It is similar in function to the iswalnum through isxdigit functions, but with iswctype you can specify the property to check for, or check for a property other than the standard ones.

You must obtain the wc_prop value from a call to wctype. If you do not, or if the LC_CTYPE category of the locale was modified after you called wctype, the behavior of iswctype is undefined.

The value of wc must be representable as an unsigned wchar_t, or WEOF.

The following strings correspond to the standard (basic) character classes or properties:

"alnum" "cntrl" "lower" "space"
"alpha" "digit" "print" "upper"
"blank" "graph" "punct" "xdigit"

Return Value
iswctype returns a nonzero value if the wide character has the property tested for. If the value for wc or wc_prop is not valid, the behavior is undefined.

Example



isalnum to isxdigit -- Test Integer Value
isascii -- Test Integer Values
isblank -- Test for Blank Character Classification
_iscsym - _iscsymf -- Test Integer
iswblank -- Test for Wide Blank Character Classification
iswalnum to iswxdigit -- Test Wide Integer Value
wctype -- Get Handle for Character Property Classification
<wctype.h>