]>
Commit | Line | Data |
---|---|---|
fea681da MK |
1 | .\" Copyright (c) Bruno Haible <haible@clisp.cons.org> |
2 | .\" | |
3 | .\" This is free documentation; you can redistribute it and/or | |
4 | .\" modify it under the terms of the GNU General Public License as | |
5 | .\" published by the Free Software Foundation; either version 2 of | |
6 | .\" the License, or (at your option) any later version. | |
7 | .\" | |
8 | .\" References consulted: | |
9 | .\" GNU glibc-2 source code and manual | |
10 | .\" Dinkumware C library reference http://www.dinkumware.com/ | |
11 | .\" OpenGroup's Single Unix specification http://www.UNIX-systems.org/online.html | |
12 | .\" ISO/IEC 9899:1999 | |
13 | .\" | |
14 | .TH ISWPUNCT 3 1999-07-25 "GNU" "Linux Programmer's Manual" | |
15 | .SH NAME | |
16 | iswpunct \- test for punctuation or symbolic wide character | |
17 | .SH SYNOPSIS | |
18 | .nf | |
19 | .B #include <wctype.h> | |
20 | .sp | |
21 | .BI "int iswpunct(wint_t " wc ); | |
22 | .fi | |
23 | .SH DESCRIPTION | |
e511ffb6 | 24 | The \fBiswpunct\fP() function is the wide-character equivalent of the |
c13182ef MK |
25 | \fBispunct\fP() function. |
26 | It tests whether \fIwc\fP is a wide character | |
fea681da MK |
27 | belonging to the wide character class "punct". |
28 | .PP | |
29 | The wide character class "punct" is a subclass of the wide character class | |
30 | "graph", and therefore also a subclass of the wide character class "print". | |
31 | .PP | |
32 | The wide character class "punct" is disjoint from the wide character class | |
33 | "alnum" and therefore also disjoint from its subclasses "alpha", "upper", | |
34 | "lower", "digit", "xdigit". | |
35 | .PP | |
36 | Being a subclass of the wide character class "print", the wide character class | |
37 | "punct" is disjoint from the wide character class "cntrl". | |
38 | .PP | |
39 | Being a subclass of the wide character class "graph", the wide character class | |
40 | "punct" is disjoint from the wide character class "space" and its subclass | |
41 | "blank". | |
42 | .SH "RETURN VALUE" | |
e511ffb6 | 43 | The \fBiswpunct\fP() function returns non-zero if \fIwc\fP is a wide character |
c13182ef MK |
44 | belonging to the wide character class "punct". |
45 | Otherwise it returns zero. | |
fea681da | 46 | .SH "CONFORMING TO" |
68e1685c | 47 | C99. |
fea681da MK |
48 | .SH "SEE ALSO" |
49 | .BR ispunct (3), | |
50 | .BR iswctype (3) | |
51 | .SH NOTES | |
e511ffb6 | 52 | The behaviour of \fBiswpunct\fP() depends on the LC_CTYPE category of the |
fea681da MK |
53 | current locale. |
54 | .PP | |
55 | This function's name is a misnomer when dealing with Unicode characters, | |
56 | because the wide character class "punct" contains both punctuation characters | |
57 | and symbol (math, currency, etc.) characters. |