]>
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 ISWPUNCT 3 2021-03-22 "Linux man-pages (unreleased)" |
fea681da MK |
12 | .SH NAME |
13 | iswpunct \- test for punctuation or symbolic wide character | |
ac9fd3df 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 iswpunct(wint_t " wc ); |
22 | .fi | |
23 | .SH DESCRIPTION | |
60a90ecd MK |
24 | The |
25 | .BR iswpunct () | |
26 | function is the wide-character equivalent of the | |
27 | .BR ispunct (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 "punct". |
fea681da | 33 | .PP |
d0f17b57 MK |
34 | The wide-character class "punct" is a subclass of the wide-character class |
35 | "graph", and therefore also a subclass of the wide-character class "print". | |
fea681da | 36 | .PP |
d0f17b57 | 37 | The wide-character class "punct" is disjoint from the wide-character class |
fea681da MK |
38 | "alnum" and therefore also disjoint from its subclasses "alpha", "upper", |
39 | "lower", "digit", "xdigit". | |
40 | .PP | |
d0f17b57 MK |
41 | Being a subclass of the wide-character class "print", |
42 | the wide-character class | |
43 | "punct" is disjoint from the wide-character class "cntrl". | |
fea681da | 44 | .PP |
d0f17b57 MK |
45 | Being a subclass of the wide-character class "graph", |
46 | the wide-character class | |
47 | "punct" is disjoint from the wide-character class "space" and its subclass | |
fea681da | 48 | "blank". |
47297adb | 49 | .SH RETURN VALUE |
60a90ecd MK |
50 | The |
51 | .BR iswpunct () | |
c7094399 | 52 | function returns nonzero |
35cfd378 MK |
53 | if |
54 | .I wc | |
55 | is a wide-character | |
d0f17b57 | 56 | belonging to the wide-character class "punct". |
2b9b829d | 57 | Otherwise, it returns zero. |
b2c5b0e9 PH |
58 | .SH ATTRIBUTES |
59 | For an explanation of the terms used in this section, see | |
60 | .BR attributes (7). | |
c466875e MK |
61 | .ad l |
62 | .nh | |
b2c5b0e9 PH |
63 | .TS |
64 | allbox; | |
c466875e | 65 | lbx lb lb |
b2c5b0e9 PH |
66 | l l l. |
67 | Interface Attribute Value | |
68 | T{ | |
69 | .BR iswpunct () | |
70 | T} Thread safety MT-Safe locale | |
71 | .TE | |
c466875e MK |
72 | .hy |
73 | .ad | |
74 | .sp 1 | |
3113c7f3 | 75 | .SH STANDARDS |
3d7f18e7 | 76 | POSIX.1-2001, POSIX.1-2008, C99. |
fea681da | 77 | .SH NOTES |
d9bfdb9c | 78 | The behavior of |
60a90ecd | 79 | .BR iswpunct () |
1274071a MK |
80 | depends on the |
81 | .B LC_CTYPE | |
82 | category of the | |
fea681da MK |
83 | current locale. |
84 | .PP | |
85 | This function's name is a misnomer when dealing with Unicode characters, | |
d0f17b57 | 86 | because the wide-character class "punct" contains both punctuation characters |
fea681da | 87 | and symbol (math, currency, etc.) characters. |
47297adb | 88 | .SH SEE ALSO |
e37e3282 MK |
89 | .BR ispunct (3), |
90 | .BR iswctype (3) |