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 TOWLOWER 3 2021-03-22 "GNU" "Linux Programmer's Manual"
19 towlower, towlower_l \- convert a wide character to lowercase
22 .B #include <wctype.h>
24 .BI "wint_t towlower(wint_t " wc );
25 .BI "wint_t towlower_l(wint_t " wc ", locale_t " locale );
29 Feature Test Macro Requirements for glibc (see
30 .BR feature_test_macros (7)):
43 function is the wide-character equivalent of the
48 is an uppercase wide character,
49 and there exists a lowercase equivalent in the current locale,
50 it returns the lowercase equivalent of
54 is returned unchanged.
58 function performs the same task,
59 but performs the conversion based on the character type information in
60 the locale specified by
66 is the special locale object
70 or is not a valid locale object handle.
74 must be representable as a
76 and be a valid character in the locale or be the value
81 was convertible to lowercase,
83 returns its lowercase equivalent;
89 function first appeared in glibc 2.3.
91 For an explanation of the terms used in this section, see
99 Interface Attribute Value
102 T} Thread safety MT-Safe locale
105 T} Thread safety MT-Safe
112 C99, POSIX.1-2001 (XSI);
113 present as an XSI extension in POSIX.1-2008, but marked obsolete.
118 The behavior of these functions depends on the
120 category of the locale.
122 These functions are not very appropriate for dealing with Unicode characters,
123 because Unicode knows about three cases: upper, lower, and title case.