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

NAME

6       iswdigit - test for decimal digit wide character
7

SYNOPSIS

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

DESCRIPTION

14       The  iswdigit()  function  is  the  wide-character  equivalent  of  the
15       isdigit(3) function.  It tests whether wc is a wide character belonging
16       to the wide-character class "digit".
17
18       The  wide-character  class  "digit" is a subclass of the wide-character
19       class "xdigit", and therefore also a  subclass  of  the  wide-character
20       class  "alnum",  of  the  wide-character class "graph" and of the wide-
21       character class "print".
22
23       Being a subclass of the wide character class "print", the  wide-charac‐
24       ter class "digit" is disjoint from the wide-character class "cntrl".
25
26       Being  a subclass of the wide-character class "graph", the wide-charac‐
27       ter class "digit" is disjoint from the wide-character class "space" and
28       its subclass "blank".
29
30       Being  a subclass of the wide-character class "alnum", the wide-charac‐
31       ter class "digit" is disjoint from the wide-character class "punct".
32
33       The wide-character class "digit" is disjoint  from  the  wide-character
34       class  "alpha" and therefore also disjoint from its subclasses "lower",
35       "upper".
36
37       The wide-character class "digit" always contains exactly the digits '0'
38       to '9'.
39

RETURN VALUE

41       The  iswdigit()  function  returns  nonzero  if  wc is a wide character
42       belonging to the wide-character class "digit".  Otherwise,  it  returns
43       zero.
44

ATTRIBUTES

46       For   an   explanation   of   the  terms  used  in  this  section,  see
47       attributes(7).
48
49       ┌───────────┬───────────────┬────────────────┐
50Interface  Attribute     Value          
51       ├───────────┼───────────────┼────────────────┤
52iswdigit() │ Thread safety │ MT-Safe locale │
53       └───────────┴───────────────┴────────────────┘

CONFORMING TO

55       POSIX.1-2001, POSIX.1-2008, C99.
56

NOTES

58       The behavior of iswdigit() depends on the LC_CTYPE category of the cur‐
59       rent locale.
60

SEE ALSO

62       isdigit(3), iswctype(3)
63

COLOPHON

65       This  page  is  part of release 5.04 of the Linux man-pages project.  A
66       description of the project, information about reporting bugs,  and  the
67       latest     version     of     this    page,    can    be    found    at
68       https://www.kernel.org/doc/man-pages/.
69
70
71
72GNU                               2015-08-08                       ISWDIGIT(3)
Impressum