WCTYPE(3) BSD Programmer's Manual WCTYPE(3)NAME
iswalnum, iswalpha, iswcntrl, iswctype, iswdigit, iswgraph, iswlower,
iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper,
wctype, wcwidth - wide-character classification macros
SYNOPSIS
#include <wchar.h>
int
iswalnum(wint_t wc);
int
iswalpha(wint_t wc);
int
iswcntrl(wint_t wc);
int
iswctype(wint_t wc, wctype_t charclass);
int
iswdigit(wint_t wc);
int
iswgraph(wint_t wc);
int
iswlower(wint_t wc);
int
iswprint(wint_t wc);
int
iswpunct(wint_t wc);
int
iswspace(wint_t wc);
int
iswupper(wint_t wc);
int
iswxdigit(wint_t wc);
wint_t
towlower(wint_t wc);
wint_t
towupper(wint_t wc);
wctype_t
wctype(char *charclass);
int
wcwidth(wint_t wc);
DESCRIPTION
The wctype routine returns an numeric value representing the character
class charclass. A value of 0 is returned for unknown classes. The pos-
sible classes are:
"alpha", "blank", "cntrl", "digit", "graph", "ideogram", "lower",
"phonogram", "print", "punct", "space", "special", "upper",
"xdigit"
The iswctype routine tests wc to see if it is in the character class
charclass (as returned by wctype). It returns a non 0 value if wc is in
the character class, 0 if not.
The wcwidth routine is identical to the scrwidth(3) routine.
The rest of these routines are identical to the standard ctype(3) rou-
tines of the same name with the first `w' removed (e.g., iswalnum is
identical to isalnum). The standard ctype(3) routines provided in the C
library are already capable of dealing with wide characters.
SEE ALSOctype(3)BSDI BSD/OS December 8, 1997 2