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

CONFORMING TO

39       C99.
40

NOTES

42       The behavior of iswpunct() depends on the LC_CTYPE category of the cur‐
43       rent locale.
44
45       This  function's  name  is a misnomer when dealing with Unicode charac‐
46       ters, because the wide-character class "punct" contains  both  punctua‐
47       tion characters and symbol (math, currency, etc.) characters.
48

SEE ALSO

50       ispunct(3), iswctype(3)
51

COLOPHON

53       This  page  is  part of release 3.53 of the Linux man-pages project.  A
54       description of the project, and information about reporting  bugs,  can
55       be found at http://www.kernel.org/doc/man-pages/.
56
57
58
59GNU                               1999-07-25                       ISWPUNCT(3)
Impressum