1ISWPUNCT(3)                Linux Programmer's Manual               ISWPUNCT(3)
2
3
4

NAME

6       iswpunct - test for punctuation or symbolic wide character
7

SYNOPSIS

9       #include <wctype.h>
10
11       int iswpunct(wint_t wc);
12

DESCRIPTION

14       The  iswpunct()  function  is  the wide-character equivalent of the is‐
15       punct(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

RETURN VALUE

34       The iswpunct() function returns nonzero if wc is a  wide-character  be‐
35       longing  to  the  wide-character  class "punct".  Otherwise, it returns
36       zero.
37

ATTRIBUTES

39       For an  explanation  of  the  terms  used  in  this  section,  see  at‐
40       tributes(7).
41
42       ┌─────────────────────────────────────┬───────────────┬────────────────┐
43Interface                            Attribute     Value          
44       ├─────────────────────────────────────┼───────────────┼────────────────┤
45iswpunct()                           │ Thread safety │ MT-Safe locale │
46       └─────────────────────────────────────┴───────────────┴────────────────┘
47

CONFORMING TO

49       POSIX.1-2001, POSIX.1-2008, C99.
50

NOTES

52       The behavior of iswpunct() depends on the LC_CTYPE category of the cur‐
53       rent locale.
54
55       This function's name is a misnomer when dealing  with  Unicode  charac‐
56       ters,  because  the wide-character class "punct" contains both punctua‐
57       tion characters and symbol (math, currency, etc.) characters.
58

SEE ALSO

60       ispunct(3), iswctype(3)
61

COLOPHON

63       This page is part of release 5.13 of the Linux  man-pages  project.   A
64       description  of  the project, information about reporting bugs, and the
65       latest    version    of    this    page,    can     be     found     at
66       https://www.kernel.org/doc/man-pages/.
67
68
69
70GNU                               2021-03-22                       ISWPUNCT(3)
Impressum