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
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

RETURN VALUE

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

ATTRIBUTES

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

CONFORMING TO

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

NOTES

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

SEE ALSO

59       ispunct(3), iswctype(3)
60

COLOPHON

62       This page is part of release 5.07 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)
Impressum