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

NAME

6       wctrans - wide-character translation mapping
7

LIBRARY

9       Standard C library (libc, -lc)
10

SYNOPSIS

12       #include <wctype.h>
13
14       wctrans_t wctrans(const char *name);
15

DESCRIPTION

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

RETURN VALUE

31       The  wctrans()  function  returns  a  mapping descriptor if the name is
32       valid.  Otherwise, it returns (wctrans_t) 0.
33

ATTRIBUTES

35       For an  explanation  of  the  terms  used  in  this  section,  see  at‐
36       tributes(7).
37
38       ┌─────────────────────────────────────┬───────────────┬────────────────┐
39Interface                            Attribute     Value          
40       ├─────────────────────────────────────┼───────────────┼────────────────┤
41wctrans()                            │ Thread safety │ MT-Safe locale │
42       └─────────────────────────────────────┴───────────────┴────────────────┘
43

STANDARDS

45       C11, POSIX.1-2008.
46

HISTORY

48       POSIX.1-2001, C99.
49

NOTES

51       The  behavior  of  wctrans()  depends  on  the LC_CTYPE category of the
52       current locale.
53

SEE ALSO

55       towctrans(3)
56
57
58
59Linux man-pages 6.05              2023-07-20                        wctrans(3)
Impressum