Debian Codegraph @

upstream/debian-trixie/man3/iswalpha.3

raw
1 '\" t
2 .\" Copyright (c) Bruno Haible <[email protected]>
3 .\"
4 .\" SPDX-License-Identifier: GPL-2.0-or-later
5 .\"
6 .\" References consulted:
7 .\" GNU glibc-2 source code and manual
8 .\" Dinkumware C library reference http://www.dinkumware.com/
9 .\" OpenGroup's Single UNIX specification http://www.UNIX-systems.org/online.html
10 .\" ISO/IEC 9899:1999
11 .\"
12 .TH iswalpha 3 2024-05-02 "Linux man-pages 6.9.1"
13 .SH NAME
14 iswalpha \- test for alphabetic wide character
15 .SH LIBRARY
16 Standard C library
17 .RI ( libc ", " \-lc )
18 .SH SYNOPSIS
19 .nf
20 .B #include <wctype.h>
21 .P
22 .BI "int iswalpha(wint_t " wc );
23 .fi
24 .SH DESCRIPTION
25 The
26 .BR iswalpha ()
27 function is the wide-character equivalent of the
28 .BR isalpha (3)
29 function.
30 It tests whether
31 .I wc
32 is a wide character
33 belonging to the wide-character class "alpha".
34 .P
35 The wide-character class "alpha" is a subclass of the
36 wide-character class "alnum",
37 and therefore also a subclass of the wide-character class "graph" and
38 of the wide-character class "print".
39 .P
40 Being a subclass of the wide-character class "print",
41 the wide-character class
42 "alpha" is disjoint from the wide-character class "cntrl".
43 .P
44 Being a subclass of the wide-character class "graph",
45 the wide-character class "alpha" is disjoint from
46 the wide-character class "space" and its subclass "blank".
47 .P
48 Being a subclass of the wide-character class "alnum",
49 the wide-character class "alpha" is disjoint from the
50 wide-character class "punct".
51 .P
52 The wide-character class "alpha" is disjoint from the wide-character class
53 "digit".
54 .P
55 The wide-character class "alpha" contains the wide-character classes "upper"
56 and "lower".
57 .P
58 The wide-character class "alpha" always contains at least the
59 letters \[aq]A\[aq] to \[aq]Z\[aq] and \[aq]a\[aq] to \[aq]z\[aq].
60 .SH RETURN VALUE
61 The
62 .BR iswalpha ()
63 function returns nonzero
64 if
65 .I wc
66 is a wide character
67 belonging to the wide-character class "alpha".
68 Otherwise, it returns zero.
69 .SH ATTRIBUTES
70 For an explanation of the terms used in this section, see
71 .BR attributes (7).
72 .TS
73 allbox;
74 lbx lb lb
75 l l l.
76 Interface Attribute Value
77 T{
78 .na
79 .nh
80 .BR iswalpha ()
81 T} Thread safety MT-Safe locale
82 .TE
83 .SH STANDARDS
84 C11, POSIX.1-2008.
85 .SH HISTORY
86 POSIX.1-2001, C99.
87 .SH NOTES
88 The behavior of
89 .BR iswalpha ()
90 depends on the
91 .B LC_CTYPE
92 category of the
93 current locale.
94 .SH SEE ALSO
95 .BR isalpha (3),
96 .BR iswctype (3)