1wctrans(3) Library Functions Manual wctrans(3)
2
3
4
6 wctrans - wide-character translation mapping
7
9 Standard C library (libc, -lc)
10
12 #include <wctype.h>
13
14 wctrans_t wctrans(const char *name);
15
17 The wctrans_t type represents a mapping which can map a wide character
18 to another wide character. Its nature is implementation-dependent, but
19 the special value (wctrans_t) 0 denotes an invalid mapping. Nonzero
20 wctrans_t values can be passed to the towctrans(3) function to actually
21 perform the wide-character mapping.
22
23 The wctrans() function returns a mapping, given by its name. The set
24 of valid names depends on the LC_CTYPE category of the current locale,
25 but the following names are valid in all locales.
26
27 "tolower" - realizes the tolower(3) mapping
28 "toupper" - realizes the toupper(3) mapping
29
31 The wctrans() function returns a mapping descriptor if the name is
32 valid. Otherwise, it returns (wctrans_t) 0.
33
35 For an explanation of the terms used in this section, see at‐
36 tributes(7).
37
38 ┌─────────────────────────────────────┬───────────────┬────────────────┐
39 │Interface │ Attribute │ Value │
40 ├─────────────────────────────────────┼───────────────┼────────────────┤
41 │wctrans() │ Thread safety │ MT-Safe locale │
42 └─────────────────────────────────────┴───────────────┴────────────────┘
43
45 C11, POSIX.1-2008.
46
48 POSIX.1-2001, C99.
49
51 The behavior of wctrans() depends on the LC_CTYPE category of the
52 current locale.
53
55 towctrans(3)
56
57
58
59Linux man-pages 6.05 2023-07-20 wctrans(3)