1WCTRANS(3) Linux Programmer's Manual WCTRANS(3)
2
3
4
6 wctrans - wide-character translation mapping
7
9 #include <wctype.h>
10
11 wctrans_t wctrans(const char *name);
12
14 The wctrans_t type represents a mapping which can map a wide character
15 to another wide character. Its nature is implementation-dependent, but
16 the special value (wctrans_t) 0 denotes an invalid mapping. Nonzero
17 wctrans_t values can be passed to the towctrans(3) function to actually
18 perform the wide-character mapping.
19
20 The wctrans() function returns a mapping, given by its name. The set
21 of valid names depends on the LC_CTYPE category of the current locale,
22 but the following names are valid in all locales.
23
24 "tolower" - realizes the tolower(3) mapping
25 "toupper" - realizes the toupper(3) mapping
26
28 The wctrans() function returns a mapping descriptor if the name is
29 valid. Otherwise, it returns (wctrans_t) 0.
30
32 For an explanation of the terms used in this section, see at‐
33 tributes(7).
34
35 ┌─────────────────────────────────────┬───────────────┬────────────────┐
36 │Interface │ Attribute │ Value │
37 ├─────────────────────────────────────┼───────────────┼────────────────┤
38 │wctrans() │ Thread safety │ MT-Safe locale │
39 └─────────────────────────────────────┴───────────────┴────────────────┘
40
42 POSIX.1-2001, POSIX.1-2008, C99.
43
45 The behavior of wctrans() depends on the LC_CTYPE category of the cur‐
46 rent locale.
47
49 towctrans(3)
50
52 This page is part of release 5.13 of the Linux man-pages project. A
53 description of the project, information about reporting bugs, and the
54 latest version of this page, can be found at
55 https://www.kernel.org/doc/man-pages/.
56
57
58
59GNU 2021-03-22 WCTRANS(3)