OSDN Git Service

LDP: Update original to LDP v3.79
[linuxjm/LDP_man-pages.git] / original / man3 / iswdigit.3
1 .\" Copyright (c) Bruno Haible <haible@clisp.cons.org>
2 .\"
3 .\" %%%LICENSE_START(GPLv2+_DOC_ONEPARA)
4 .\" This is free documentation; you can redistribute it and/or
5 .\" modify it under the terms of the GNU General Public License as
6 .\" published by the Free Software Foundation; either version 2 of
7 .\" the License, or (at your option) any later version.
8 .\" %%%LICENSE_END
9 .\"
10 .\" References consulted:
11 .\"   GNU glibc-2 source code and manual
12 .\"   Dinkumware C library reference http://www.dinkumware.com/
13 .\"   OpenGroup's Single UNIX specification http://www.UNIX-systems.org/online.html
14 .\"   ISO/IEC 9899:1999
15 .\"
16 .TH ISWDIGIT 3  1999-07-25 "GNU" "Linux Programmer's Manual"
17 .SH NAME
18 iswdigit \- test for decimal digit wide character
19 .SH SYNOPSIS
20 .nf
21 .B #include <wctype.h>
22 .sp
23 .BI "int iswdigit(wint_t " wc );
24 .fi
25 .SH DESCRIPTION
26 The
27 .BR iswdigit ()
28 function is the wide-character equivalent of the
29 .BR isdigit (3)
30 function.
31 It tests whether
32 .I wc
33 is a wide character
34 belonging to the wide-character class "digit".
35 .PP
36 The wide-character class "digit" is a subclass of the wide-character class
37 "xdigit", and therefore also a subclass
38 of the wide-character class "alnum", of
39 the wide-character class "graph" and of the wide-character class "print".
40 .PP
41 Being a subclass of the wide character
42 class "print", the wide-character class
43 "digit" is disjoint from the wide-character class "cntrl".
44 .PP
45 Being a subclass of the wide-character class "graph",
46 the wide-character class
47 "digit" is disjoint from the wide-character class "space" and its subclass
48 "blank".
49 .PP
50 Being a subclass of the wide-character
51 class "alnum", the wide-character class
52 "digit" is disjoint from the wide-character class "punct".
53 .PP
54 The wide-character class "digit" is
55 disjoint from the wide-character class
56 "alpha" and therefore also disjoint from its subclasses "lower", "upper".
57 .PP
58 The wide-character class "digit" always
59 contains exactly the digits \(aq0\(aq to \(aq9\(aq.
60 .SH RETURN VALUE
61 The
62 .BR iswdigit ()
63 function returns nonzero
64 if
65 .I wc
66 is a wide character
67 belonging to the wide-character class "digit".
68 Otherwise, it returns zero.
69 .SH CONFORMING TO
70 C99.
71 .SH NOTES
72 The behavior of
73 .BR iswdigit ()
74 depends on the
75 .B LC_CTYPE
76 category of the
77 current locale.
78 .SH SEE ALSO
79 .BR isdigit (3),
80 .BR iswctype (3)
81 .SH COLOPHON
82 This page is part of release 3.79 of the Linux
83 .I man-pages
84 project.
85 A description of the project,
86 information about reporting bugs,
87 and the latest version of this page,
88 can be found at
89 \%http://www.kernel.org/doc/man\-pages/.