]>
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 iswdigit 3 (date) "Linux man-pages (unreleased)" |
fea681da MK |
13 | .SH NAME |
14 | iswdigit \- test for decimal digit wide character | |
b98625b1 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 "int iswdigit(wint_t " wc ); |
23 | .fi | |
24 | .SH DESCRIPTION | |
60a90ecd MK |
25 | The |
26 | .BR iswdigit () | |
27 | function is the wide-character equivalent of the | |
28 | .BR isdigit (3) | |
29 | function. | |
35cfd378 MK |
30 | It tests whether |
31 | .I wc | |
32 | is a wide character | |
d0f17b57 | 33 | belonging to the wide-character class "digit". |
fea681da | 34 | .PP |
d0f17b57 | 35 | The wide-character class "digit" is a subclass of the wide-character class |
988db661 | 36 | "xdigit", and therefore also a subclass |
d0f17b57 MK |
37 | of the wide-character class "alnum", of |
38 | the wide-character class "graph" and of the wide-character class "print". | |
fea681da | 39 | .PP |
988db661 | 40 | Being a subclass of the wide character |
d0f17b57 MK |
41 | class "print", the wide-character class |
42 | "digit" is disjoint from the wide-character class "cntrl". | |
fea681da | 43 | .PP |
988db661 | 44 | Being a subclass of the wide-character class "graph", |
d0f17b57 MK |
45 | the wide-character class |
46 | "digit" is disjoint from the wide-character class "space" and its subclass | |
fea681da MK |
47 | "blank". |
48 | .PP | |
988db661 | 49 | Being a subclass of the wide-character |
d0f17b57 MK |
50 | class "alnum", the wide-character class |
51 | "digit" is disjoint from the wide-character class "punct". | |
fea681da | 52 | .PP |
988db661 | 53 | The wide-character class "digit" is |
d0f17b57 | 54 | disjoint from the wide-character class |
fea681da MK |
55 | "alpha" and therefore also disjoint from its subclasses "lower", "upper". |
56 | .PP | |
988db661 | 57 | The wide-character class "digit" always |
b957f81f | 58 | contains exactly the digits \[aq]0\[aq] to \[aq]9\[aq]. |
47297adb | 59 | .SH RETURN VALUE |
60a90ecd MK |
60 | The |
61 | .BR iswdigit () | |
c7094399 | 62 | function returns nonzero |
35cfd378 MK |
63 | if |
64 | .I wc | |
65 | is a wide character | |
d0f17b57 | 66 | belonging to the wide-character class "digit". |
2b9b829d | 67 | Otherwise, it returns zero. |
2d1a90ae PH |
68 | .SH ATTRIBUTES |
69 | For an explanation of the terms used in this section, see | |
70 | .BR attributes (7). | |
71 | .TS | |
72 | allbox; | |
c466875e | 73 | lbx lb lb |
2d1a90ae PH |
74 | l l l. |
75 | Interface Attribute Value | |
76 | T{ | |
9e54434e BR |
77 | .na |
78 | .nh | |
2d1a90ae PH |
79 | .BR iswdigit () |
80 | T} Thread safety MT-Safe locale | |
81 | .TE | |
c466875e | 82 | .sp 1 |
3113c7f3 | 83 | .SH STANDARDS |
4131356c AC |
84 | C11, POSIX.1-2008. |
85 | .SH HISTORY | |
86 | POSIX.1-2001, C99. | |
fea681da | 87 | .SH NOTES |
d9bfdb9c | 88 | The behavior of |
60a90ecd | 89 | .BR iswdigit () |
1274071a MK |
90 | depends on the |
91 | .B LC_CTYPE | |
92 | category of the | |
fea681da | 93 | current locale. |
47297adb | 94 | .SH SEE ALSO |
e37e3282 MK |
95 | .BR isdigit (3), |
96 | .BR iswctype (3) |