2 .\" Copyright (c) Bruno Haible <haible@clisp.cons.org>
4 .\" SPDX-License-Identifier: GPL-2.0-or-later
6 .\" References consulted:
7 .\" GNU glibc-2 source code and manual
8 .\" Dinkumware C library reference http://www.dinkumware.com/
9 .\" OpenGroup's Single UNIX specification http://www.UNIX-systems.org/online.html
12 .TH iswpunct 3 (date) "Linux man-pages (unreleased)"
14 iswpunct \- test for punctuation or symbolic wide character
17 .RI ( libc ", " \-lc )
20 .B #include <wctype.h>
22 .BI "int iswpunct(wint_t " wc );
27 function is the wide-character equivalent of the
33 belonging to the wide-character class "punct".
35 The wide-character class "punct" is a subclass of the wide-character class
36 "graph", and therefore also a subclass of the wide-character class "print".
38 The wide-character class "punct" is disjoint from the wide-character class
39 "alnum" and therefore also disjoint from its subclasses "alpha", "upper",
40 "lower", "digit", "xdigit".
42 Being a subclass of the wide-character class "print",
43 the wide-character class
44 "punct" is disjoint from the wide-character class "cntrl".
46 Being a subclass of the wide-character class "graph",
47 the wide-character class
48 "punct" is disjoint from the wide-character class "space" and its subclass
53 function returns nonzero
57 belonging to the wide-character class "punct".
58 Otherwise, it returns zero.
60 For an explanation of the terms used in this section, see
66 Interface Attribute Value
71 T} Thread safety MT-Safe locale
85 This function's name is a misnomer when dealing with Unicode characters,
86 because the wide-character class "punct" contains both punctuation characters
87 and symbol (math, currency, etc.) characters.