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 is‐
15       digit(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 be‐
42       longing 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 at‐
47       tributes(7).
48
49       ┌─────────────────────────────────────┬───────────────┬────────────────┐
50Interface                            Attribute     Value          
51       ├─────────────────────────────────────┼───────────────┼────────────────┤
52iswdigit()                           │ Thread safety │ MT-Safe locale │
53       └─────────────────────────────────────┴───────────────┴────────────────┘
54

CONFORMING TO

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

NOTES

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

SEE ALSO

63       isdigit(3), iswctype(3)
64

COLOPHON

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