|
There are twelve strings that are reserved for the standard character classes:
"alnum" | "alpha" | "blank" |
"cntrl" | "digit" | "graph" |
"lower" | "print" | "punct" |
"space" | "upper" | "xdigit" |
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.
|