The
wctype ();
function returns a value of type
Vt wctype_t
which represents the requested wide character class and
may be used as the second argument for calls to
iswctype (.);
The following character class names are recognised:
alnumcntrlideogramprintspacexdigit
alphadigitlowerpunctspecial
blankgraphphonogramruneupper
The
iswctype ();
function checks whether the wide character
Fa wc
is in the character class
Fa charclass .
RETURN VALUES
The
iswctype ();
function returns non-zero if and only if
Fa wc
has the property described by
Fa charclass ,
or
Fa charclass
is zero.
The
wctype ();
function returns 0 if
Fa property
is invalid, otherwise it returns a value of type
Vt wctype_t
that can be used in subsequent calls to
iswctype (.);
EXAMPLES
Reimplement
iswalpha(3)
in terms of
iswctype ();
and
wctype (:);
int
myiswalpha(wint_t wc)
{
return (iswctype(wc, wctype("alpha")));
}
The
iswctype ();
and
wctype ();
functions conform to
St -p1003.1-2001 .
The
``ideogram
''
``phonogram
''
``special
''
and
``rune
''
character classes are extensions.
HISTORY
The
iswctype ();
and
wctype ();
functions first appeared in
Fx 5.0 .