NAME
iisswwccttyyppee, wwccttyyppee, iisswwccttyyppeell, wwccttyyppeell - wide character class functions
LLIIBBRRAARRYYStandard C Library (libc, -lc)
SYNOPSIS
##iinncclluuddee <
int> iisswwccttyyppee(wintt wc, wctypet charclass);
wctypet
wwccttyyppee(const char *property);##iinncclluuddee <
int> iisswwccttyyppeell(wintt wc, wctypet charclass, localet loc);
wctypet
wwccttyyppeell(const char *property, localet loc);DESCRIPTION
The wwccttyyppee() function returns a value of type wctypet which represents
the requested wide character class and may be used as the second argument for calls to iisswwccttyyppee(). The following character class names are recognised: alnum cntrl ideogram print space xdigit alpha digit lower punct special blank graph phonogram rune upper The iisswwccttyyppee() function checks whether the wide character wc is in the character class charclass. While the iisswwccttyyppee() and wwccttyyppee() functions use the current locale, the iisswwccttyyppeell() and wwccttyyppeell() functions may be passed locales directly. See xlocale(3) for more information.RETURN VALUES
The iisswwccttyyppee() function returns non-zero if and only if wc has the prop-
erty described by charclass, or charclass is zero. The wwccttyyppee() function returns 0 if property is invalid, otherwise itreturns a value of type wctypet that can be used in subsequent calls to
iisswwccttyyppee(). EEXXAAMMPPLLEESS Reimplement iswalpha(3) in terms of iisswwccttyyppee() and wwccttyyppee(): int myiswalpha(wintt wc) {return (iswctype(wc, wctype("alpha")));
}SEE ALSO
ctype(3), xlocale(3) STANDARDSThe iisswwccttyyppee() and wwccttyyppee() functions conform to IEEE Std 1003.1-2001
(``POSIX.1''). The ``ideogram'', ``phonogram'' ``special'', and ``rune'' character classes are extensions. HISTORY The iisswwccttyyppee() and wwccttyyppee() functions first appeared in FreeBSD 5.0. BSD March 27, 2004 BSD