1 .\" Copyright (c) Bruno Haible <haible@clisp.cons.org>
3 .\" SPDX-License-Identifier: GPL-2.0-or-later
5 .\" References consulted:
6 .\" GNU glibc-2 source code and manual
7 .\" Dinkumware C library reference http://www.dinkumware.com/
8 .\" OpenGroup's Single UNIX specification http://www.UNIX-systems.org/online.html
11 .TH ISWPUNCT 3 2021-03-22 "Linux man-pages (unreleased)"
13 iswpunct \- test for punctuation or symbolic wide character
16 .RI ( libc ", " \-lc )
19 .B #include <wctype.h>
21 .BI "int iswpunct(wint_t " wc );
26 function is the wide-character equivalent of the
32 belonging to the wide-character class "punct".
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".
37 The wide-character class "punct" is disjoint from the wide-character class
38 "alnum" and therefore also disjoint from its subclasses "alpha", "upper",
39 "lower", "digit", "xdigit".
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".
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
52 function returns nonzero
56 belonging to the wide-character class "punct".
57 Otherwise, it returns zero.
59 For an explanation of the terms used in this section, see
67 Interface Attribute Value
70 T} Thread safety MT-Safe locale
76 POSIX.1-2001, POSIX.1-2008, C99.
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.