Debian Codegraph @

upstream/debian-unstable/man3/iswxdigit.3

raw
1 '\" t
2 .\" Copyright, Bruno Haible <[email protected]>
3 .\" Copyright, the authors of the Linux man-pages project
4 .\"
5 .\" SPDX-License-Identifier: GPL-2.0-or-later
6 .\"
7 .TH iswxdigit 3 2026-02-08 "Linux man-pages 6.18"
8 .SH NAME
9 iswxdigit \- test for hexadecimal digit wide character
10 .SH LIBRARY
11 Standard C library
12 .RI ( libc ,\~ \-lc )
13 .SH SYNOPSIS
14 .nf
15 .B #include <wctype.h>
16 .P
17 .BI "int iswxdigit(wint_t " wc );
18 .fi
19 .SH DESCRIPTION
20 The
21 .BR iswxdigit ()
22 function is the wide-character equivalent of the
23 .BR isxdigit (3)
24 function.
25 It tests whether
26 .I wc
27 is a wide character
28 belonging to the wide-character class "xdigit".
29 .P
30 The wide-character class "xdigit" is a subclass of the wide-character class
31 "alnum", and therefore also a subclass of the wide-character class "graph" and
32 of the wide-character class "print".
33 .P
34 Being a subclass of the wide-character class "print", the wide-character class
35 "xdigit" is disjoint from the wide-character class "cntrl".
36 .P
37 Being a subclass of the wide-character class "graph", the wide-character class
38 "xdigit" is disjoint from the wide-character class "space" and its subclass
39 "blank".
40 .P
41 Being a subclass of the wide-character class "alnum", the wide-character class
42 "xdigit" is disjoint from the wide-character class "punct".
43 .P
44 The wide-character class "xdigit" always contains at least the
45 letters \[aq]A\[aq] to \[aq]F\[aq], \[aq]a\[aq] to \[aq]f\[aq]
46 and the digits \[aq]0\[aq] to \[aq]9\[aq].
47 .SH RETURN VALUE
48 The
49 .BR iswxdigit ()
50 function returns nonzero if
51 .I wc
52 is a wide character
53 belonging to the wide-character class "xdigit".
54 Otherwise, it returns zero.
55 .SH ATTRIBUTES
56 For an explanation of the terms used in this section, see
57 .BR attributes (7).
58 .TS
59 allbox;
60 lbx lb lb
61 l l l.
62 Interface Attribute Value
63 T{
64 .na
65 .nh
66 .BR iswxdigit ()
67 T} Thread safety MT-Safe locale
68 .TE
69 .SH STANDARDS
70 C11, POSIX.1-2008.
71 .SH HISTORY
72 POSIX.1-2001, C99.
73 .SH NOTES
74 The behavior of
75 .BR iswxdigit ()
76 depends on the
77 .B LC_CTYPE
78 category of the
79 current locale.
80 .SH SEE ALSO
81 .BR iswctype (3),
82 .BR isxdigit (3)