]>
Commit | Line | Data |
---|---|---|
a1eaacb1 | 1 | '\" t |
fea681da MK |
2 | .\" Copyright (c) Bruno Haible <haible@clisp.cons.org> |
3 | .\" | |
e4a74ca8 | 4 | .\" SPDX-License-Identifier: GPL-2.0-or-later |
fea681da MK |
5 | .\" |
6 | .\" References consulted: | |
7 | .\" GNU glibc-2 source code and manual | |
8 | .\" Dinkumware C library reference http://www.dinkumware.com/ | |
008f1ecc | 9 | .\" OpenGroup's Single UNIX specification http://www.UNIX-systems.org/online.html |
fea681da MK |
10 | .\" ISO/IEC 9899:1999 |
11 | .\" | |
4c1c5274 | 12 | .TH wctype 3 (date) "Linux man-pages (unreleased)" |
fea681da | 13 | .SH NAME |
d0f17b57 | 14 | wctype \- wide-character classification |
7d85f88c AC |
15 | .SH LIBRARY |
16 | Standard C library | |
8fc3b2cf | 17 | .RI ( libc ", " \-lc ) |
fea681da MK |
18 | .SH SYNOPSIS |
19 | .nf | |
20 | .B #include <wctype.h> | |
68e4db0a | 21 | .PP |
fea681da MK |
22 | .BI "wctype_t wctype(const char *" name ); |
23 | .fi | |
24 | .SH DESCRIPTION | |
eb0ac593 MK |
25 | The |
26 | .I wctype_t | |
27 | type represents a property which a wide character may or | |
c13182ef MK |
28 | may not have. |
29 | In other words, it represents a class of wide characters. | |
a43eed0c | 30 | This type's nature is implementation-dependent, but the special value |
eb0ac593 MK |
31 | .I "(wctype_t) 0" |
32 | denotes an invalid property. | |
33 | Nonzero | |
34 | .I wctype_t | |
35 | values | |
60a90ecd MK |
36 | can be passed to the |
37 | .BR iswctype (3) | |
38 | function | |
c13182ef | 39 | to actually test whether a given |
fea681da MK |
40 | wide character has the property. |
41 | .PP | |
60a90ecd MK |
42 | The |
43 | .BR wctype () | |
44 | function returns a property, given by its name. | |
c13182ef | 45 | The set of |
1274071a MK |
46 | valid names depends on the |
47 | .B LC_CTYPE | |
48 | category of the current locale, but the | |
fea681da | 49 | following names are valid in all locales. |
a2b7a144 | 50 | .PP |
fea681da | 51 | .nf |
a2b7a144 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. | |
2b9b829d | 72 | Otherwise, it returns |
eb0ac593 | 73 | .IR "(wctype_t) 0" . |
060d7a6e | 74 | .SH ATTRIBUTES |
edf62357 PH |
75 | For an explanation of the terms used in this section, see |
76 | .BR attributes (7). | |
77 | .TS | |
78 | allbox; | |
c466875e | 79 | lbx lb lb |
edf62357 PH |
80 | l l l. |
81 | Interface Attribute Value | |
82 | T{ | |
9e54434e BR |
83 | .na |
84 | .nh | |
060d7a6e | 85 | .BR wctype () |
edf62357 PH |
86 | T} Thread safety MT-Safe locale |
87 | .TE | |
c466875e | 88 | .sp 1 |
3113c7f3 | 89 | .SH STANDARDS |
4131356c AC |
90 | C11, POSIX.1-2008. |
91 | .SH HISTORY | |
92 | POSIX.1-2001, C99. | |
fea681da | 93 | .SH NOTES |
d9bfdb9c | 94 | The behavior of |
60a90ecd | 95 | .BR wctype () |
1274071a MK |
96 | depends on the |
97 | .B LC_CTYPE | |
98 | category of the | |
fea681da | 99 | current locale. |
47297adb | 100 | .SH SEE ALSO |
e37e3282 | 101 | .BR iswctype (3) |