]>
Commit | Line | Data |
---|---|---|
fea681da MK |
1 | .\" Copyright (c) Bruno Haible <haible@clisp.cons.org> |
2 | .\" | |
89e3ffe9 | 3 | .\" %%%LICENSE_START(GPLv2+_DOC_ONEPARA) |
fea681da MK |
4 | .\" This is free documentation; you can redistribute it and/or |
5 | .\" modify it under the terms of the GNU General Public License as | |
6 | .\" published by the Free Software Foundation; either version 2 of | |
7 | .\" the License, or (at your option) any later version. | |
fe382ebf | 8 | .\" %%%LICENSE_END |
fea681da MK |
9 | .\" |
10 | .\" References consulted: | |
11 | .\" GNU glibc-2 source code and manual | |
12 | .\" Dinkumware C library reference http://www.dinkumware.com/ | |
008f1ecc | 13 | .\" OpenGroup's Single UNIX specification http://www.UNIX-systems.org/online.html |
fea681da MK |
14 | .\" ISO/IEC 9899:1999 |
15 | .\" | |
e4ecdf36 | 16 | .TH WCTYPE 3 2014-01-22 "GNU" "Linux Programmer's Manual" |
fea681da | 17 | .SH NAME |
d0f17b57 | 18 | wctype \- wide-character classification |
fea681da MK |
19 | .SH SYNOPSIS |
20 | .nf | |
21 | .B #include <wctype.h> | |
22 | .sp | |
23 | .BI "wctype_t wctype(const char *" name ); | |
24 | .fi | |
25 | .SH DESCRIPTION | |
eb0ac593 MK |
26 | The |
27 | .I wctype_t | |
28 | type represents a property which a wide character may or | |
c13182ef MK |
29 | may not have. |
30 | In other words, it represents a class of wide characters. | |
a43eed0c | 31 | This type's nature is implementation-dependent, but the special value |
eb0ac593 MK |
32 | .I "(wctype_t) 0" |
33 | denotes an invalid property. | |
34 | Nonzero | |
35 | .I wctype_t | |
36 | values | |
60a90ecd MK |
37 | can be passed to the |
38 | .BR iswctype (3) | |
39 | function | |
c13182ef | 40 | to actually test whether a given |
fea681da MK |
41 | wide character has the property. |
42 | .PP | |
60a90ecd MK |
43 | The |
44 | .BR wctype () | |
45 | function returns a property, given by its name. | |
c13182ef | 46 | The set of |
1274071a MK |
47 | valid names depends on the |
48 | .B LC_CTYPE | |
49 | category of the current locale, but the | |
fea681da MK |
50 | following names are valid in all locales. |
51 | .nf | |
fb186734 MK |
52 | "alnum" \- realizes the \fBisalnum\fP(3) classification function |
53 | "alpha" \- realizes the \fBisalpha\fP(3) classification function | |
54 | "blank" \- realizes the \fBisblank\fP(3) classification function | |
55 | "cntrl" \- realizes the \fBiscntrl\fP(3) classification function | |
56 | "digit" \- realizes the \fBisdigit\fP(3) classification function | |
57 | "graph" \- realizes the \fBisgraph\fP(3) classification function | |
58 | "lower" \- realizes the \fBislower\fP(3) classification function | |
59 | "print" \- realizes the \fBisprint\fP(3) classification function | |
60 | "punct" \- realizes the \fBispunct\fP(3) classification function | |
61 | "space" \- realizes the \fBisspace\fP(3) classification function | |
62 | "upper" \- realizes the \fBisupper\fP(3) classification function | |
63 | "xdigit" \- realizes the \fBisxdigit\fP(3) classification function | |
fea681da | 64 | .fi |
47297adb | 65 | .SH RETURN VALUE |
60a90ecd MK |
66 | The |
67 | .BR wctype () | |
68 | function returns a property descriptor | |
eb0ac593 MK |
69 | if the |
70 | .I name | |
71 | is valid. | |
72 | Otherwise it returns | |
73 | .IR "(wctype_t) 0" . | |
060d7a6e PH |
74 | .SH ATTRIBUTES |
75 | .SS Multithreading (see pthreads(7)) | |
76 | The | |
77 | .BR wctype () | |
78 | function is thread-safe with exceptions. | |
79 | It can be safely used in multithreaded applications, as long as | |
80 | .BR setlocale (3) | |
e4ecdf36 | 81 | is not called to change the locale during its execution. |
47297adb | 82 | .SH CONFORMING TO |
68e1685c | 83 | C99. |
fea681da | 84 | .SH NOTES |
d9bfdb9c | 85 | The behavior of |
60a90ecd | 86 | .BR wctype () |
1274071a MK |
87 | depends on the |
88 | .B LC_CTYPE | |
89 | category of the | |
fea681da | 90 | current locale. |
47297adb | 91 | .SH SEE ALSO |
e37e3282 | 92 | .BR iswctype (3) |