1 .\" Copyright (c) Bruno Haible <haible@clisp.cons.org>
3 .\" This is free documentation; you can redistribute it and/or
4 .\" modify it under the terms of the GNU General Public License as
5 .\" published by the Free Software Foundation; either version 2 of
6 .\" the License, or (at your option) any later version.
8 .\" References consulted:
9 .\" GNU glibc-2 source code and manual
10 .\" Dinkumware C library reference http://www.dinkumware.com/
11 .\" OpenGroup's Single Unix specification http://www.UNIX-systems.org/online.html
14 .TH WCTYPE 3 1999-07-25 "GNU" "Linux Programmer's Manual"
16 wctype \- wide character classification
19 .B #include <wctype.h>
21 .BI "wctype_t wctype(const char *" name );
24 The \fBwctype_t\fP type represents a property which a wide character may or
26 In other words, it represents a class of wide characters.
27 This type's nature is implementation dependent, but the special value
28 \fI(wctype_t)0\fP denotes an invalid property.
29 Nonzero \fBwctype_t\fP values
30 can be passed to the \fBiswctype\fP() function
31 to actually test whether a given
32 wide character has the property.
34 The \fBwctype\fP() function returns a property, given by its name.
36 valid names depends on the LC_CTYPE category of the current locale, but the
37 following names are valid in all locales.
39 "alnum" \- realizes the \fBisalnum\fP() classification function
40 "alpha" \- realizes the \fBisalpha\fP() classification function
41 "blank" \- realizes the \fBisblank\fP() classification function
42 "cntrl" \- realizes the \fBiscntrl\fP() classification function
43 "digit" \- realizes the \fBisdigit\fP() classification function
44 "graph" \- realizes the \fBisgraph\fP() classification function
45 "lower" \- realizes the \fBislower\fP() classification function
46 "print" \- realizes the \fBisprint\fP() classification function
47 "punct" \- realizes the \fBispunct\fP() classification function
48 "space" \- realizes the \fBisspace\fP() classification function
49 "upper" \- realizes the \fBisupper\fP() classification function
50 "xdigit" \- realizes the \fBisxdigit\fP() classification function
53 The \fBwctype\fP() function returns a property descriptor
54 if the \fIname\fP is valid.
55 Otherwise it returns \fI(wctype_t)0\fP.
61 The behaviour of \fBwctype\fP() depends on the LC_CTYPE category of the