2 .\" Copyright (c) Bruno Haible <haible@clisp.cons.org>
3 .\" and Copyright (C) 2014 Michael Kerrisk <mtk.manpages@gmail.com>
5 .\" SPDX-License-Identifier: GPL-2.0-or-later
7 .\" References consulted:
8 .\" GNU glibc-2 source code and manual
9 .\" Dinkumware C library reference http://www.dinkumware.com/
10 .\" OpenGroup's Single UNIX specification http://www.UNIX-systems.org/online.html
13 .TH towlower 3 (date) "Linux man-pages (unreleased)"
15 towlower, towlower_l \- convert a wide character to lowercase
18 .RI ( libc ", " \-lc )
21 .B #include <wctype.h>
23 .BI "wint_t towlower(wint_t " wc );
24 .BI "wint_t towlower_l(wint_t " wc ", locale_t " locale );
28 Feature Test Macro Requirements for glibc (see
29 .BR feature_test_macros (7)):
42 function is the wide-character equivalent of the
47 is an uppercase wide character,
48 and there exists a lowercase equivalent in the current locale,
49 it returns the lowercase equivalent of
53 is returned unchanged.
57 function performs the same task,
58 but performs the conversion based on the character type information in
59 the locale specified by
65 is the special locale object
69 or is not a valid locale object handle.
73 must be representable as a
75 and be a valid character in the locale or be the value
80 was convertible to lowercase,
82 returns its lowercase equivalent;
86 For an explanation of the terms used in this section, see
92 Interface Attribute Value
97 T} Thread safety MT-Safe locale
102 T} Thread safety MT-Safe
108 C11, POSIX.1-2008 (XSI).
115 C99, POSIX.1-2001 (XSI).
116 Obsolete in POSIX.1-2008 (XSI).
122 The behavior of these functions depends on the
124 category of the locale.
126 These functions are not very appropriate for dealing with Unicode characters,
127 because Unicode knows about three cases: upper, lower, and title case.