|
|
#include <wchar.h>int iswctype(wint_t wc, wctype_t prop);
wctype_t wctype(const char *charclass);
wctype is defined for valid wide character class names that have a definition in the current locale. charclass is a string that identifies a generic wide character class. For this, codeset-specific information is needed. The wide character class names that are supported in all locales are listed below.
The functions found on the left are equivalent to the iswctype calls on the right.
iswalpha(wc) iswctype(wc, wctype("alpha"))
iswupper(wc) iswctype(wc, wctype("upper"))
iswlower(wc) iswctype(wc, wctype("lower"))
iswdigit(wc) iswctype(wc, wctype("digit"))
iswxdigit(wc) iswctype(wc, wctype("xdigit"))
iswalnum(wc) iswctype(wc, wctype("alnum"))
iswspace(wc) iswctype(wc, wctype("space"))
iswpunct(wc) iswctype(wc, wctype("punct"))
iswprint(wc) iswctype(wc, wctype("print"))
iswgraph(wc) iswctype(wc, wctype("graph"))
iswcntrl(wc) iswctype(wc, wctype("cntrl"))
There is no isw* function equivalent to the call:
iswctype(wc, wctype("blank"))