wctype(3S)wctype(3S)NAME
wctype: iswalpha, iswupper, iswlower, iswdigit, iswxdigit, iswalnum,
iswspace, iswpunct, iswprint, iswgraph, iswcntrl, iswascii, isphonogram,
isideogram, isenglish, isnumber, isspecial, wctype, iswctype -
classification functions for ASCII and supplementary code set characters,
and extensible wide character classification functions
SYNOPSIS
#include <ctype.h>
#include <widec.h>
#include <wctype.h>
int iswalpha(wchar_t c);
...
wctype_t wctype(const char *property);
int iswctype(wint_t wc, wctype_t desc);
DESCRIPTION
These functions classify character-coded wchar_t values by table lookup.
Each is a predicate returning nonzero for true, zero for false. The
lookup table is generated by wchrtbl(1M). Each of these functions
operates on both ASCII and supplementary code sets unless otherwise
indicated.
iswalpha(c) c is an English letter.
iswupper(c) c is an English uppercase letter.
iswlower(c) c is an English lowercase letter.
iswdigit(c) c is a digit [0-9].
iswxdigit(c) c is a hexadecimal digit [0-9], [A-F], or [a-f].
iswalnum(c) c is an alphanumeric (letter or digit).
iswspace(c) c is a space character or a tab, carriage return,
newline, vertical tab, or form-feed.
iswpunct(c) c is a punctuation character (neither control nor
alphanumeric).
iswprint(c) c is a printing character including space.
iswgraph(c) c is a printing character; like iswprint except false
for space.
iswcntrl(c) c is a delete character (0177), an ordinary control
character (less than 040), or other control character
of a supplementary code set.
Page 1
wctype(3S)wctype(3S)iswascii(c) c is an ASCII character code less than 0200.
isphonogram(c) c is a phonogram in a supplementary code set.
isideogram(c) c is an ideogram in a supplementary code set.
isenglish(c) c is an English letters in a supplementary code set.
isnumber(c) c is a digit of a supplementary code set.
isspecial(c) c is a special character in a supplementary code set.
The wctype function and iswctype function are extensible wide
character classification functions.
wctype(property) function returns a nonzero value of wctype_t
type that describes a class of wide characters determined by the argument
property, if the value is valid as the second argument to the iswctype
function. Otherwise it returns zero. alnum alpha blank cntrl digit graph
lower print punct space upper xdigit phonogram ideogram english number
special other are available property names.
iswctype(wc,desc) function determins whether wc is
classified as the property described by desc or not, and returns a
nonzero value if it is true.
SEE ALSOwchrtbl(1M), ctype(3C), wconv(3S).
Page 2