]> git.ipfire.org Git - thirdparty/man-pages.git/blob - man3/iswupper.3
Import of man-pages 1.70
[thirdparty/man-pages.git] / man3 / iswupper.3
1 .\" Copyright (c) Bruno Haible <haible@clisp.cons.org>
2 .\"
3 .\" This is free documentation; you can redistribute it and/or
4 .\" modify it under the terms of the GNU General Public License as
5 .\" published by the Free Software Foundation; either version 2 of
6 .\" the License, or (at your option) any later version.
7 .\"
8 .\" References consulted:
9 .\" GNU glibc-2 source code and manual
10 .\" Dinkumware C library reference http://www.dinkumware.com/
11 .\" OpenGroup's Single Unix specification http://www.UNIX-systems.org/online.html
12 .\" ISO/IEC 9899:1999
13 .\"
14 .TH ISWUPPER 3 1999-07-25 "GNU" "Linux Programmer's Manual"
15 .SH NAME
16 iswupper \- test for uppercase wide character
17 .SH SYNOPSIS
18 .nf
19 .B #include <wctype.h>
20 .sp
21 .BI "int iswupper(wint_t " wc );
22 .fi
23 .SH DESCRIPTION
24 The \fBiswupper\fP function is the wide-character equivalent of the
25 \fBisupper\fP function. It tests whether \fIwc\fP is a wide character
26 belonging to the wide character class "upper".
27 .PP
28 The wide character class "upper" is a subclass of the wide character class
29 "alpha", and therefore also a subclass of the wide character class "alnum", of
30 the wide character class "graph" and of the wide character class "print".
31 .PP
32 Being a subclass of the wide character class "print", the wide character class
33 "upper" is disjoint from the wide character class "cntrl".
34 .PP
35 Being a subclass of the wide character class "graph", the wide character class
36 "upper" is disjoint from the wide character class "space" and its subclass
37 "blank".
38 .PP
39 Being a subclass of the wide character class "alnum", the wide character class
40 "upper" is disjoint from the wide character class "punct".
41 .PP
42 Being a subclass of the wide character class "alpha", the wide character class
43 "upper" is disjoint from the wide character class "digit".
44 .PP
45 The wide character class "upper" contains at least those characters \fIwc\fP
46 which are equal to \fItowupper(wc)\fP and different from \fItowlower(wc)\fP.
47 .PP
48 The wide character class "upper" always contains at least the letters 'A'
49 to 'Z'.
50 .SH "RETURN VALUE"
51 The \fBiswupper\fP function returns non-zero if \fIwc\fP is a wide character
52 belonging to the wide character class "upper". Otherwise it returns zero.
53 .SH "CONFORMING TO"
54 ISO/ANSI C, UNIX98
55 .SH "SEE ALSO"
56 .BR isupper (3),
57 .BR iswctype (3),
58 .BR towupper (3)
59 .SH NOTES
60 The behaviour of \fBiswupper\fP depends on the LC_CTYPE category of the
61 current locale.
62 .PP
63 This function is not very appropriate for dealing with Unicode characters,
64 because Unicode knows about three cases: upper, lower and title case.