1ISWPUNCT(3) Linux Programmer's Manual ISWPUNCT(3)
2
3
4
6 iswpunct - test for punctuation or symbolic wide character
7
9 #include <wctype.h>
10
11 int iswpunct(wint_t wc);
12
14 The iswpunct() function is the wide-character equivalent of the
15 ispunct(3) function. It tests whether wc is a wide character belonging
16 to the wide-character class "punct".
17
18 The wide-character class "punct" is a subclass of the wide-character
19 class "graph", and therefore also a subclass of the wide-character
20 class "print".
21
22 The wide-character class "punct" is disjoint from the wide-character
23 class "alnum" and therefore also disjoint from its subclasses "alpha",
24 "upper", "lower", "digit", "xdigit".
25
26 Being a subclass of the wide-character class "print", the wide-charac‐
27 ter class "punct" is disjoint from the wide-character class "cntrl".
28
29 Being a subclass of the wide-character class "graph", the wide-charac‐
30 ter class "punct" is disjoint from the wide-character class "space" and
31 its subclass "blank".
32
34 The iswpunct() function returns nonzero if wc is a wide-character
35 belonging to the wide-character class "punct". Otherwise, it returns
36 zero.
37
39 For an explanation of the terms used in this section, see
40 attributes(7).
41
42 ┌───────────┬───────────────┬────────────────┐
43 │Interface │ Attribute │ Value │
44 ├───────────┼───────────────┼────────────────┤
45 │iswpunct() │ Thread safety │ MT-Safe locale │
46 └───────────┴───────────────┴────────────────┘
48 POSIX.1-2001, POSIX.1-2008, C99.
49
51 The behavior of iswpunct() depends on the LC_CTYPE category of the cur‐
52 rent locale.
53
54 This function's name is a misnomer when dealing with Unicode charac‐
55 ters, because the wide-character class "punct" contains both punctua‐
56 tion characters and symbol (math, currency, etc.) characters.
57
59 ispunct(3), iswctype(3)
60
62 This page is part of release 4.15 of the Linux man-pages project. A
63 description of the project, information about reporting bugs, and the
64 latest version of this page, can be found at
65 https://www.kernel.org/doc/man-pages/.
66
67
68
69GNU 2015-08-08 ISWPUNCT(3)