]>
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 | .\" | |
460495ca | 16 | .TH ISWALPHA 3 2015-08-08 "GNU" "Linux Programmer's Manual" |
fea681da MK |
17 | .SH NAME |
18 | iswalpha \- test for alphabetic wide character | |
19 | .SH SYNOPSIS | |
20 | .nf | |
21 | .B #include <wctype.h> | |
68e4db0a | 22 | .PP |
fea681da MK |
23 | .BI "int iswalpha(wint_t " wc ); |
24 | .fi | |
25 | .SH DESCRIPTION | |
60a90ecd MK |
26 | The |
27 | .BR iswalpha () | |
28 | function is the wide-character equivalent of the | |
29 | .BR isalpha (3) | |
30 | function. | |
35cfd378 MK |
31 | It tests whether |
32 | .I wc | |
33 | is a wide character | |
d0f17b57 | 34 | belonging to the wide-character class "alpha". |
fea681da | 35 | .PP |
988db661 MK |
36 | The wide-character class "alpha" is a subclass of the |
37 | wide-character class "alnum", | |
d0f17b57 MK |
38 | and therefore also a subclass of the wide-character class "graph" and |
39 | of the wide-character class "print". | |
fea681da | 40 | .PP |
d0f17b57 MK |
41 | Being a subclass of the wide-character class "print", |
42 | the wide-character class | |
43 | "alpha" is disjoint from the wide-character class "cntrl". | |
fea681da | 44 | .PP |
d0f17b57 | 45 | Being a subclass of the wide-character class "graph", |
988db661 | 46 | the wide-character class "alpha" is disjoint from |
d0f17b57 | 47 | the wide-character class "space" and its subclass "blank". |
fea681da | 48 | .PP |
d0f17b57 MK |
49 | Being a subclass of the wide-character class "alnum", |
50 | the wide-character class "alpha" is disjoint from the | |
51 | wide-character class "punct". | |
fea681da | 52 | .PP |
d0f17b57 | 53 | The wide-character class "alpha" is disjoint from the wide-character class |
fea681da MK |
54 | "digit". |
55 | .PP | |
d0f17b57 | 56 | The wide-character class "alpha" contains the wide-character classes "upper" |
fea681da MK |
57 | and "lower". |
58 | .PP | |
f81fb444 MK |
59 | The wide-character class "alpha" always contains at least the |
60 | letters \(aqA\(aq to \(aqZ\(aq and \(aqa\(aq to \(aqz\(aq. | |
47297adb | 61 | .SH RETURN VALUE |
60a90ecd MK |
62 | The |
63 | .BR iswalpha () | |
c7094399 | 64 | function returns nonzero |
35cfd378 MK |
65 | if |
66 | .I wc | |
67 | is a wide character | |
d0f17b57 | 68 | belonging to the wide-character class "alpha". |
2b9b829d | 69 | Otherwise, it returns zero. |
79ea1699 | 70 | .SH ATTRIBUTES |
5c62248a MK |
71 | For an explanation of the terms used in this section, see |
72 | .BR attributes (7). | |
73 | .TS | |
74 | allbox; | |
75 | lb lb lb | |
76 | l l l. | |
77 | Interface Attribute Value | |
78 | T{ | |
79ea1699 | 79 | .BR iswalpha () |
5c62248a MK |
80 | T} Thread safety MT-Safe locale |
81 | .TE | |
47297adb | 82 | .SH CONFORMING TO |
1ac0308a | 83 | POSIX.1-2001, POSIX.1-2008, C99. |
fea681da | 84 | .SH NOTES |
d9bfdb9c | 85 | The behavior of |
60a90ecd | 86 | .BR iswalpha () |
1274071a MK |
87 | depends on the |
88 | .B LC_CTYPE | |
89 | category of the | |
fea681da | 90 | current locale. |
47297adb | 91 | .SH SEE ALSO |
e37e3282 MK |
92 | .BR isalpha (3), |
93 | .BR iswctype (3) |