]>
Commit | Line | Data |
---|---|---|
fea681da MK |
1 | .\" Copyright (c) Bruno Haible <haible@clisp.cons.org> |
2 | .\" | |
e4a74ca8 | 3 | .\" SPDX-License-Identifier: GPL-2.0-or-later |
fea681da MK |
4 | .\" |
5 | .\" References consulted: | |
6 | .\" GNU glibc-2 source code and manual | |
7 | .\" Dinkumware C library reference http://www.dinkumware.com/ | |
008f1ecc | 8 | .\" OpenGroup's Single UNIX specification http://www.UNIX-systems.org/online.html |
fea681da MK |
9 | .\" ISO/IEC 9899:1999 |
10 | .\" | |
45186a5d | 11 | .TH TOWCTRANS 3 2021-03-22 "Linux man-pages (unreleased)" |
fea681da MK |
12 | .SH NAME |
13 | towctrans \- wide-character transliteration | |
32e3340b AC |
14 | .SH LIBRARY |
15 | Standard C library | |
8fc3b2cf | 16 | .RI ( libc ", " \-lc ) |
fea681da MK |
17 | .SH SYNOPSIS |
18 | .nf | |
19 | .B #include <wctype.h> | |
68e4db0a | 20 | .PP |
fea681da MK |
21 | .BI "wint_t towctrans(wint_t " wc ", wctrans_t " desc ); |
22 | .fi | |
23 | .SH DESCRIPTION | |
35cfd378 MK |
24 | If |
25 | .I wc | |
26 | is a wide character, the | |
60a90ecd MK |
27 | .BR towctrans () |
28 | function | |
35cfd378 MK |
29 | translates it according to the transliteration descriptor |
30 | .IR desc . | |
31 | If | |
d8a86e74 | 32 | .I wc |
35cfd378 MK |
33 | is |
34 | .BR WEOF , | |
35 | .B WEOF | |
36 | is returned. | |
fea681da | 37 | .PP |
35cfd378 MK |
38 | .I desc |
39 | must be a transliteration descriptor returned by | |
60a90ecd MK |
40 | the |
41 | .BR wctrans (3) | |
42 | function. | |
47297adb | 43 | .SH RETURN VALUE |
60a90ecd MK |
44 | The |
45 | .BR towctrans () | |
46 | function returns the translated wide character, | |
35cfd378 | 47 | or |
d8a86e74 | 48 | .B WEOF |
35cfd378 MK |
49 | if |
50 | .I wc | |
51 | is | |
52 | .BR WEOF . | |
1c2794e7 | 53 | .SH ATTRIBUTES |
deb14ced PH |
54 | For an explanation of the terms used in this section, see |
55 | .BR attributes (7). | |
c466875e MK |
56 | .ad l |
57 | .nh | |
deb14ced PH |
58 | .TS |
59 | allbox; | |
c466875e | 60 | lbx lb lb |
deb14ced PH |
61 | l l l. |
62 | Interface Attribute Value | |
63 | T{ | |
1c2794e7 | 64 | .BR towctrans () |
deb14ced PH |
65 | T} Thread safety MT-Safe |
66 | .TE | |
c466875e MK |
67 | .hy |
68 | .ad | |
69 | .sp 1 | |
3113c7f3 | 70 | .SH STANDARDS |
7aaf19e7 | 71 | POSIX.1-2001, POSIX.1-2008, C99. |
fea681da | 72 | .SH NOTES |
d9bfdb9c | 73 | The behavior of |
60a90ecd | 74 | .BR towctrans () |
1274071a MK |
75 | depends on the |
76 | .B LC_CTYPE | |
77 | category of the | |
fea681da | 78 | current locale. |
47297adb | 79 | .SH SEE ALSO |
e37e3282 MK |
80 | .BR towlower (3), |
81 | .BR towupper (3), | |
82 | .BR wctrans (3) |