1TOWLOWER(3)                Linux Programmer's Manual               TOWLOWER(3)
2
3
4

NAME

6       towlower, towlower_l - convert a wide character to lowercase
7

SYNOPSIS

9       #include <wctype.h>
10
11       wint_t towlower(wint_t wc);
12       wint_t towlower_l(wint_t wc, locale_t locale);
13
14   Feature Test Macro Requirements for glibc (see feature_test_macros(7)):
15
16       towlower_l():
17           Since glibc 2.10:
18               _XOPEN_SOURCE >= 700
19           Before glibc 2.10:
20               _GNU_SOURCE
21

DESCRIPTION

23       The  towlower()  function  is  the  wide-character  equivalent  of  the
24       tolower(3) function.  If wc is an uppercase wide character,  and  there
25       exists  a  lowercase  equivalent  in the current locale, it returns the
26       lowercase equivalent of wc.  In all other cases,  wc  is  returned  un‐
27       changed.
28
29       The towlower_l() function performs the same task, but performs the con‐
30       version based on the character type information in the locale specified
31       by  locale.  The behavior of towlower_l() is undefined if locale is the
32       special locale object LC_GLOBAL_LOCALE (see duplocale(3)) or is  not  a
33       valid locale object handle.
34
35       The argument wc must be representable as a wchar_t and be a valid char‐
36       acter in the locale or be the value WEOF.
37

RETURN VALUE

39       If wc was convertible to lowercase, towlower()  returns  its  lowercase
40       equivalent; otherwise it returns wc.
41

VERSIONS

43       The towlower_l() function first appeared in glibc 2.3.
44

ATTRIBUTES

46       For  an  explanation  of  the  terms  used  in  this  section,  see at‐
47       tributes(7).
48
49       ┌─────────────────────────────────────┬───────────────┬────────────────┐
50Interface                            Attribute     Value          
51       ├─────────────────────────────────────┼───────────────┼────────────────┤
52towlower()                           │ Thread safety │ MT-Safe locale │
53       ├─────────────────────────────────────┼───────────────┼────────────────┤
54towlower_l()                         │ Thread safety │ MT-Safe        │
55       └─────────────────────────────────────┴───────────────┴────────────────┘
56

CONFORMING TO

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

NOTES

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 ti‐
69       tle case.
70

SEE ALSO

72       iswlower(3), towctrans(3), towupper(3), locale(7)
73

COLOPHON

75       This page is part of release 5.13 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                               2021-03-22                       TOWLOWER(3)
Impressum