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() 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 non-zero 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

SEE ALSO

42       ispunct(3), iswctype(3)
43

NOTES

45       The behaviour of iswpunct() depends on the  LC_CTYPE  category  of  the
46       current locale.
47
48       This  function's  name  is a misnomer when dealing with Unicode charac‐
49       ters, because the wide character class "punct" contains  both  punctua‐
50       tion characters and symbol (math, currency, etc.) characters.
51
52
53
54GNU                               1999-07-25                       ISWPUNCT(3)
Impressum