1 .\" Copyright (c) Bruno Haible <haible@clisp.cons.org>
3 .\" %%%LICENSE_START(GPLv2+_DOC_ONEPARA)
4 .\" This is free documentation; you can redistribute it and/or
5 .\" modify it under the terms of the GNU General Public License as
6 .\" published by the Free Software Foundation; either version 2 of
7 .\" the License, or (at your option) any later version.
10 .\" References consulted:
11 .\" GNU glibc-2 source code and manual
12 .\" Dinkumware C library reference http://www.dinkumware.com/
13 .\" OpenGroup's Single UNIX specification http://www.UNIX-systems.org/online.html
16 .TH WCTRANS 3 2021-03-22 "GNU" "Linux Programmer's Manual"
18 wctrans \- wide-character translation mapping
21 .B #include <wctype.h>
23 .BI "wctrans_t wctrans(const char *" name );
28 type represents a mapping
29 which can map a wide character to
30 another wide character.
31 Its nature is implementation-dependent, but the special
34 denotes an invalid mapping.
37 values can be passed to the
39 function to actually perform
40 the wide-character mapping.
44 function returns a mapping, given by its name.
46 valid names depends on the
48 category of the current locale, but the
49 following names are valid in all locales.
52 "tolower" \- realizes the \fBtolower\fP(3) mapping
53 "toupper" \- realizes the \fBtoupper\fP(3) mapping
58 function returns a mapping descriptor if the
62 .IR "(wctrans_t)\ 0" .
64 For an explanation of the terms used in this section, see
72 Interface Attribute Value
75 T} Thread safety MT-Safe locale
81 POSIX.1-2001, POSIX.1-2008, C99.