1TOWLOWER(3) Linux Programmer's Manual TOWLOWER(3)
2
3
4
6 towlower, towlower_l - convert a wide character to lowercase
7
9 #include <wctype.h>
10
11 wint_t towlower(wint_t wc);
12
13 wint_t towlower_l(wint_t wc, locale_t locale);
14
15 Feature Test Macro Requirements for glibc (see feature_test_macros(7)):
16
17 towlower_l():
18 Since glibc 2.10:
19 _XOPEN_SOURCE >= 700
20 Before glibc 2.10:
21 _GNU_SOURCE
22
24 The towlower() function is the wide-character equivalent of the
25 tolower(3) function. If wc is an uppercase wide character, and there
26 exists a lowercase equivalent in the current locale, it returns the
27 lowercase equivalent of wc. In all other cases, wc is returned
28 unchanged.
29
30 The towlower_l() function performs the same task, but performs the con‐
31 version based on the character type information in the locale specified
32 by locale. The behavior of towlower_l() is undefined if locale is the
33 special locale object LC_GLOBAL_LOCALE (see duplocale(3)) or is not a
34 valid locale object handle.
35
36 The argument wc must be representable as a wchar_t and be a valid char‐
37 acter in the locale or be the value WEOF.
38
40 If wc was convertible to lowercase, towlower() returns its lowercase
41 equivalent; otherwise it returns wc.
42
44 The towlower_l() function first appeared in glibc 2.3.
45
47 For an explanation of the terms used in this section, see
48 attributes(7).
49
50 ┌─────────────┬───────────────┬────────────────┐
51 │Interface │ Attribute │ Value │
52 ├─────────────┼───────────────┼────────────────┤
53 │towlower() │ Thread safety │ MT-Safe locale │
54 ├─────────────┼───────────────┼────────────────┤
55 │towlower_l() │ Thread safety │ MT-Safe │
56 └─────────────┴───────────────┴────────────────┘
58 towlower(): C99, POSIX.1-2001 (XSI); present as an XSI extension in
59 POSIX.1-2008, but marked obsolete.
60
61 towlower_l(): POSIX.1-2008.
62
64 The behavior of these functions depends on the LC_CTYPE category of the
65 locale.
66
67 These functions are not very appropriate for dealing with Unicode char‐
68 acters, because Unicode knows about three cases: upper, lower and title
69 case.
70
72 iswlower(3), towctrans(3), towupper(3), locale(7)
73
75 This page is part of release 5.02 of the Linux man-pages project. A
76 description of the project, information about reporting bugs, and the
77 latest version of this page, can be found at
78 https://www.kernel.org/doc/man-pages/.
79
80
81
82GNU 2017-09-15 TOWLOWER(3)