Your Browser is not longer supported

Please use Google Chrome, Mozilla Firefox or Microsoft Edge to view the page correctly
Loading...

{{viewport.spaceProperty.prod}}

iswctype - Test wide character for class

&pagelevel(4)&pagelevel

Definition  

#include <wctype.h>

int iswctype(wint_t wc, wctype_t charclass);

iswctype tests whether the wide character wc has the character class charclass.
In all cases, wc is an argument of type wint_t, the value of which must be a wide character
code corresponding to a valid character in the current locale or must equal the value of the
macro WEOF. If the argument wc has any other value, the behavior is undefined.

Return val.

!= 0

0

The wide character is in character class charclass.

The wide character not in the character class charclass.

Notes

This version of the C runtime system only supports one-byte characters as wide character codes.

The twelve strings "alnum", "alpha", "blank", "cntrl", "digit", "graph",
"lower", "print", "punct", "space", "upper" and "xdigit" are reserved for the standard
character classes. In the table below, the functions in the left column are equivalent to the
functions in the right column:.

iswalnum(wc)      iswctype(wc,  wctype("alnum"))
iswalpha(wc)      iswctype(wc,  wctype("alpha"))
iswcntrl(wc)      iswctype(wc,  wctype("cntrl"))
iswdigit(wc)      iswctype(wc,  wctype("digit"))
iswgraph(wc)      iswctype(wc,  wctype("graph"))
iswlower(wc)      iswctype(wc,  wctype("lower"))
iswprint(wc)      iswctype(wc,  wctype("print"))
iswpunct(wc)      iswctype(wc,  wctype("punct"))
iswspace(wc)      iswctype(wc,  wctype("space"))
iswupper(wc)      iswctype(wc,  wctype("upper"))
iswxdigit(wc)     iswctype(wc,  wctype("xdigit"))

The call iswctype(wc, wctype("blank")) does not have an equivalent isw* function.

See also

wctype, iswalnum, iswalpha, iswcntrl, iswdigit, iswgraph, iswlower, iswprint, iswpunct,
iswspace, iswupper, iswxdigit