1 .\" Copyright (c) Bruno Haible <haible@clisp.cons.org>
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.
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
14 .TH ISWPUNCT 3 1999-07-25 "GNU" "Linux Programmer's Manual"
16 iswpunct \- test for punctuation or symbolic wide character
19 .B #include <wctype.h>
21 .BI "int iswpunct(wint_t " wc );
24 The \fBiswpunct\fP function is the wide-character equivalent of the
25 \fBispunct\fP function. It tests whether \fIwc\fP is a wide character
26 belonging to the wide character class "punct".
28 The wide character class "punct" is a subclass of the wide character class
29 "graph", and therefore also a subclass of the wide character class "print".
31 The wide character class "punct" is disjoint from the wide character class
32 "alnum" and therefore also disjoint from its subclasses "alpha", "upper",
33 "lower", "digit", "xdigit".
35 Being a subclass of the wide character class "print", the wide character class
36 "punct" is disjoint from the wide character class "cntrl".
38 Being a subclass of the wide character class "graph", the wide character class
39 "punct" is disjoint from the wide character class "space" and its subclass
42 The \fBiswpunct\fP function returns non-zero if \fIwc\fP is a wide character
43 belonging to the wide character class "punct". Otherwise it returns zero.
50 The behaviour of \fBiswpunct\fP depends on the LC_CTYPE category of the
53 This function's name is a misnomer when dealing with Unicode characters,
54 because the wide character class "punct" contains both punctuation characters
55 and symbol (math, currency, etc.) characters.