]>
Commit | Line | Data |
---|---|---|
fea681da MK |
1 | .\" Copyright (c) Bruno Haible <haible@clisp.cons.org> |
2 | .\" | |
e4a74ca8 | 3 | .\" SPDX-License-Identifier: GPL-2.0-or-later |
fea681da MK |
4 | .\" |
5 | .\" References consulted: | |
6 | .\" GNU glibc-2 source code and manual | |
7 | .\" Dinkumware C library reference http://www.dinkumware.com/ | |
008f1ecc | 8 | .\" OpenGroup's Single UNIX specification http://www.UNIX-systems.org/online.html |
fea681da MK |
9 | .\" ISO/IEC 9899:1999 |
10 | .\" | |
45186a5d | 11 | .TH ISWSPACE 3 2021-03-22 "Linux man-pages (unreleased)" |
fea681da MK |
12 | .SH NAME |
13 | iswspace \- test for whitespace wide character | |
19b989d3 AC |
14 | .SH LIBRARY |
15 | Standard C library | |
8fc3b2cf | 16 | .RI ( libc ", " \-lc ) |
fea681da MK |
17 | .SH SYNOPSIS |
18 | .nf | |
19 | .B #include <wctype.h> | |
68e4db0a | 20 | .PP |
fea681da MK |
21 | .BI "int iswspace(wint_t " wc ); |
22 | .fi | |
23 | .SH DESCRIPTION | |
60a90ecd MK |
24 | The |
25 | .BR iswspace () | |
26 | function is the wide-character equivalent of the | |
27 | .BR isspace (3) | |
28 | function. | |
35cfd378 MK |
29 | It tests whether |
30 | .I wc | |
31 | is a wide character | |
d0f17b57 | 32 | belonging to the wide-character class "space". |
fea681da | 33 | .PP |
d0f17b57 | 34 | The wide-character class "space" is disjoint from the wide-character class |
fea681da MK |
35 | "graph" and therefore also disjoint from its subclasses "alnum", "alpha", |
36 | "upper", "lower", "digit", "xdigit", "punct". | |
37 | .\" Note: UNIX98 (susv2/xbd/locale.html) says that "space" and "graph" may | |
68e1685c | 38 | .\" have characters in common, except U+0020. But C99 (ISO/IEC 9899:1999 |
fea681da MK |
39 | .\" section 7.25.2.1.10) says that "space" and "graph" are disjoint. |
40 | .PP | |
d0f17b57 | 41 | The wide-character class "space" contains the wide-character class "blank". |
fea681da | 42 | .PP |
d0f17b57 | 43 | The wide-character class "space" always contains at least the space character |
f81fb444 | 44 | and the control |
d1a71985 | 45 | characters \(aq\ef\(aq, \(aq\en\(aq, \(aq\er\(aq, \(aq\et\(aq, \(aq\ev\(aq. |
47297adb | 46 | .SH RETURN VALUE |
60a90ecd MK |
47 | The |
48 | .BR iswspace () | |
35cfd378 MK |
49 | function returns nonzero if |
50 | .I wc | |
51 | is a wide character | |
d0f17b57 | 52 | belonging to the wide-character class "space". |
2b9b829d | 53 | Otherwise, it returns zero. |
b31d11a4 PH |
54 | .SH ATTRIBUTES |
55 | For an explanation of the terms used in this section, see | |
56 | .BR attributes (7). | |
c466875e MK |
57 | .ad l |
58 | .nh | |
b31d11a4 PH |
59 | .TS |
60 | allbox; | |
c466875e | 61 | lbx lb lb |
b31d11a4 PH |
62 | l l l. |
63 | Interface Attribute Value | |
64 | T{ | |
65 | .BR iswspace () | |
66 | T} Thread safety MT-Safe locale | |
67 | .TE | |
c466875e MK |
68 | .hy |
69 | .ad | |
70 | .sp 1 | |
3113c7f3 | 71 | .SH STANDARDS |
463701f1 | 72 | POSIX.1-2001, POSIX.1-2008, C99. |
fea681da | 73 | .SH NOTES |
d9bfdb9c | 74 | The behavior of |
60a90ecd | 75 | .BR iswspace () |
1274071a MK |
76 | depends on the |
77 | .B LC_CTYPE | |
78 | category of the | |
fea681da | 79 | current locale. |
47297adb | 80 | .SH SEE ALSO |
e37e3282 MK |
81 | .BR isspace (3), |
82 | .BR iswctype (3) |