1 .\" and Copyright (C) 2014 Michael Kerrisk <mtk.manpages@gmail.com>
3 .\" SPDX-License-Identifier: GPL-2.0-or-later
5 .\" References consulted:
6 .\" GNU glibc-2 source code and manual
7 .\" Dinkumware C library reference http://www.dinkumware.com/
8 .\" OpenGroup's Single UNIX specification http://www.UNIX-systems.org/online.html
11 .TH TOWUPPER 3 2021-03-22 "Linux man-pages (unreleased)" "Linux Programmer's Manual"
13 towupper, towupper_l \- convert a wide character to uppercase
16 .RI ( libc ", " \-lc )
19 .B #include <wctype.h>
21 .BI "wint_t towupper(wint_t " wc );
22 .BI "wint_t towupper_l(wint_t " wc ", locale_t " locale );
26 Feature Test Macro Requirements for glibc (see
27 .BR feature_test_macros (7)):
40 function is the wide-character equivalent of the
45 is a lowercase wide character,
46 and there exists an uppercase equivalent in the current locale,
47 it returns the uppercase equivalent of
51 is returned unchanged.
55 function performs the same task,
56 but performs the conversion based on the character type information in
57 the locale specified by
63 is the special locale object
67 or is not a valid locale object handle.
71 must be representable as a
73 and be a valid character in the locale or be the value
78 was convertible to uppercase,
80 returns its uppercase equivalent;
86 function first appeared in glibc 2.3.
88 For an explanation of the terms used in this section, see
96 Interface Attribute Value
99 T} Thread safety MT-Safe locale
102 T} Thread safety MT-Safe
109 C99, POSIX.1-2001 (XSI);
110 present as an XSI extension in POSIX.1-2008, but marked obsolete.
115 The behavior of these functions depends on the
117 category of the locale.
119 These functions are not very appropriate for dealing with Unicode characters,
120 because Unicode knows about three cases: upper, lower, and title case.