3 .\" This file and its contents are supplied under the terms of the
4 .\" Common Development and Distribution License ("CDDL"), version 1.0.
5 .\" You may only use this file in accordance with the terms of version
8 .\" A full copy of the text of the CDDL should have accompanied this
9 .\" source. A copy of the CDDL is also available via the Internet at
10 .\" http://www.illumos.org/license/CDDL.
13 .\" Copyright (c) 2014 Joyent, Inc. All rights reserved.
14 .\" Copyright 2014 Garrett D'Amore <garrett@damore.org>
16 .TH WCTRANS 3C "Jun 25, 2014"
19 towctrans, towctrans_l, wctrans, wctrans_l \- define and perform transliteration mappings
25 \fBwint_t\fR \fBtowctrans\fR(\fBwint_t\fR \fIwc\fR, \fBwctrans_t\fR \fIdesc\fR);
29 \fBwint_t\fR \fBtowctrans_l\fR(\fBwint_t\fR \fIwc\fR, \fBwctrans_t\fR \fIdesc\fR, \fBlocale_t\fR \fIloc\fR);
33 \fBwctrans_t\fR \fBwctrans\fR(\fBconst char *\fR \fItranclass\fR);
37 \fBwctrans_t\fR \fBwctrans_l\fR(\fBconst char *\fR \fItranclass\fR, \fBlocale_t\fR \fIloc\fR);
45 are used to obtain a handle to a table that maps one set of wide
46 characters to another. They return an object of type
48 which can be used with the functions
52 The valid set of classes that are available depends on the locale.
53 The following names are valid in all locales:
56 Conversion from upper case to lower case characters.
59 Conversion from lower case to upper case characters.
65 functions convert the wide character
67 based on the conversion table specified by
74 are equivalent to the functions
78 but instead of operating in the current locale, they operate on the
82 On successful completion,
86 functions return the character that corresponds to the argument passed
87 through the mapping table described by
89 Otherwise, they return the character unchanged and set
91 On successful completion,
95 functions return a non-zero identifier for
97 On failure, they return zero and set
105 functions will fail if:
108 The mapping class specified by
110 does not exist or is invalid.
116 functions will fail if:
119 The mapping class specified by
127 ATTRIBUTE TYPE ATTRIBUTE VALUE
129 Interface Stability Standard