1towlower(3)                Library Functions Manual                towlower(3)
2
3
4

NAME

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

LIBRARY

9       Standard C library (libc, -lc)
10

SYNOPSIS

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

DESCRIPTION

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

RETURN VALUE

42       If wc was convertible to lowercase, towlower()  returns  its  lowercase
43       equivalent; otherwise it returns wc.
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

STANDARDS

58       towlower()
59              C11, POSIX.1-2008 (XSI).
60
61       towlower_l()
62              POSIX.1-2008.
63

STANDARDS

65       towlower()
66              C99, POSIX.1-2001 (XSI).  Obsolete in POSIX.1-2008 (XSI).
67
68       towlower_l()
69              glibc 2.3.  POSIX.1-2008.
70

NOTES

72       The behavior of these functions depends on the LC_CTYPE category of the
73       locale.
74
75       These  functions  are  not  very  appropriate  for dealing with Unicode
76       characters, because Unicode knows about three cases: upper, lower,  and
77       title case.
78

SEE ALSO

80       iswlower(3), towctrans(3), towupper(3), locale(7)
81
82
83
84Linux man-pages 6.05              2023-07-20                       towlower(3)
Impressum