]>
Commit | Line | Data |
---|---|---|
fea681da MK |
1 | .\" Copyright (c) Bruno Haible <haible@clisp.cons.org> |
2 | .\" | |
89e3ffe9 | 3 | .\" %%%LICENSE_START(GPLv2+_DOC_ONEPARA) |
fea681da MK |
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. | |
fe382ebf | 8 | .\" %%%LICENSE_END |
fea681da MK |
9 | .\" |
10 | .\" References consulted: | |
11 | .\" GNU glibc-2 source code and manual | |
12 | .\" Dinkumware C library reference http://www.dinkumware.com/ | |
008f1ecc | 13 | .\" OpenGroup's Single UNIX specification http://www.UNIX-systems.org/online.html |
fea681da MK |
14 | .\" ISO/IEC 9899:1999 |
15 | .\" | |
e4ecdf36 | 16 | .TH TOWUPPER 3 2014-01-22 "GNU" "Linux Programmer's Manual" |
fea681da MK |
17 | .SH NAME |
18 | towupper \- convert a wide character to uppercase | |
19 | .SH SYNOPSIS | |
20 | .nf | |
21 | .B #include <wctype.h> | |
22 | .sp | |
23 | .BI "wint_t towupper(wint_t " wc ); | |
24 | .fi | |
25 | .SH DESCRIPTION | |
60a90ecd MK |
26 | The |
27 | .BR towupper () | |
28 | function is the wide-character equivalent of the | |
29 | .BR toupper (3) | |
30 | function. | |
35cfd378 MK |
31 | If |
32 | .I wc | |
33 | is a wide character, it is converted to | |
c13182ef MK |
34 | uppercase. |
35 | Characters which do not have case are returned unchanged. | |
35cfd378 | 36 | If |
51700fd7 | 37 | .IR wc |
35cfd378 MK |
38 | is |
39 | .BR WEOF , | |
40 | .B WEOF | |
41 | is returned. | |
47297adb | 42 | .SH RETURN VALUE |
60a90ecd MK |
43 | The |
44 | .BR towupper () | |
35cfd378 MK |
45 | function returns the uppercase equivalent of |
46 | .IR wc , | |
47 | or | |
51700fd7 | 48 | .BR WEOF |
35cfd378 MK |
49 | if |
50 | .I wc | |
51 | is | |
52 | .BR WEOF . | |
c15158e2 PH |
53 | .SH ATTRIBUTES |
54 | .SS Multithreading (see pthreads(7)) | |
55 | The | |
56 | .BR towupper () | |
57 | function is thread-safe with exceptions. | |
58 | It can be safely used in multithreaded applications, as long as | |
59 | .BR setlocale (3) | |
e4ecdf36 | 60 | is not called to change the locale during its execution. |
47297adb | 61 | .SH CONFORMING TO |
68e1685c | 62 | C99. |
fea681da | 63 | .SH NOTES |
d9bfdb9c | 64 | The behavior of |
60a90ecd | 65 | .BR towupper () |
1274071a MK |
66 | depends on the |
67 | .B LC_CTYPE | |
68 | category of the | |
fea681da MK |
69 | current locale. |
70 | .PP | |
71 | This function is not very appropriate for dealing with Unicode characters, | |
72 | because Unicode knows about three cases: upper, lower and title case. | |
47297adb | 73 | .SH SEE ALSO |
e37e3282 MK |
74 | .BR iswupper (3), |
75 | .BR towctrans (3), | |
76 | .BR towlower (3) |