Description | 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.
|
Notes | 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. Restriction This version of the C runtime system only supports 1-byte characters as wide character codes. They are of type wchar_t (see stddef.h). (End) |
See also | wctype(), iswalnum(), iswalpha(), iswcntrl(), iswdigit(), iswgraph(), iswlower(), iswprint(), iswpunct(), iswspace(), iswupper(), iswxdigit(), wchar.h.
|