1iswupper(3) Library Functions Manual iswupper(3)
2
3
4
6 iswupper - test for uppercase wide character
7
9 Standard C library (libc, -lc)
10
12 #include <wctype.h>
13
14 int iswupper(wint_t wc);
15
17 The iswupper() function is the wide-character equivalent of the isup‐
18 per(3) function. It tests whether wc is a wide character belonging to
19 the wide-character class "upper".
20
21 The wide-character class "upper" is a subclass of the wide-character
22 class "alpha", and therefore also a subclass of the wide-character
23 class "alnum", of the wide-character class "graph" and of the wide-
24 character class "print".
25
26 Being a subclass of the wide-character class "print", the wide-charac‐
27 ter class "upper" is disjoint from the wide-character class "cntrl".
28
29 Being a subclass of the wide-character class "graph", the wide-charac‐
30 ter class "upper" is disjoint from the wide-character class "space" and
31 its subclass "blank".
32
33 Being a subclass of the wide-character class "alnum", the wide-charac‐
34 ter class "upper" is disjoint from the wide-character class "punct".
35
36 Being a subclass of the wide-character class "alpha", the wide-charac‐
37 ter class "upper" is disjoint from the wide-character class "digit".
38
39 The wide-character class "upper" contains at least those characters wc
40 which are equal to towupper(wc) and different from towlower(wc).
41
42 The wide-character class "upper" always contains at least the letters
43 'A' to 'Z'.
44
46 The iswupper() function returns nonzero if wc is a wide character be‐
47 longing to the wide-character class "upper". Otherwise, it returns
48 zero.
49
51 For an explanation of the terms used in this section, see at‐
52 tributes(7).
53
54 ┌─────────────────────────────────────┬───────────────┬────────────────┐
55 │Interface │ Attribute │ Value │
56 ├─────────────────────────────────────┼───────────────┼────────────────┤
57 │iswupper() │ Thread safety │ MT-Safe locale │
58 └─────────────────────────────────────┴───────────────┴────────────────┘
59
61 C11, POSIX.1-2008.
62
64 POSIX.1-2001, C99.
65
67 The behavior of iswupper() depends on the LC_CTYPE category of the
68 current locale.
69
70 This function is not very appropriate for dealing with Unicode
71 characters, because Unicode knows about three cases: upper, lower, and
72 title case.
73
75 isupper(3), iswctype(3), towupper(3)
76
77
78
79Linux man-pages 6.05 2023-07-20 iswupper(3)