1 .\" Copyright (c) Bruno Haible <haible@clisp.cons.org>
2 .\" and Copyright (C) 2014 Michael Kerrisk <mtk.manpages@gmail.com>
4 .\" %%%LICENSE_START(GPLv2+_DOC_ONEPARA)
5 .\" This is free documentation; you can redistribute it and/or
6 .\" modify it under the terms of the GNU General Public License as
7 .\" published by the Free Software Foundation; either version 2 of
8 .\" the License, or (at your option) any later version.
11 .\" References consulted:
12 .\" GNU glibc-2 source code and manual
13 .\" Dinkumware C library reference http://www.dinkumware.com/
14 .\" OpenGroup's Single UNIX specification http://www.UNIX-systems.org/online.html
17 .TH TOWUPPER 3 2014-01-22 "GNU" "Linux Programmer's Manual"
19 towupper \- convert a wide character to uppercase
22 .B #include <wctype.h>
24 .BI "wint_t towupper(wint_t " wc );
29 function is the wide-character equivalent of the
34 is a lowercase wide character,
35 and there exists an uppercase equivalent in the current locale,
36 it returns the uppercase equivalent of
40 is returned unchanged.
44 must be representable as a
46 and be a valid character in the locale or the value
51 was convertible to uppercase,
53 returns its uppercase equivalent;
57 .SS Multithreading (see pthreads(7))
60 function is thread-safe with exceptions.
61 It can be safely used in multithreaded applications, as long as
63 is not called to change the locale during its execution.
74 This function is not very appropriate for dealing with Unicode characters,
75 because Unicode knows about three cases: upper, lower and title case.