1TOWCTRANS(3P) POSIX Programmer's Manual TOWCTRANS(3P)
2
3
4
6 This manual page is part of the POSIX Programmer's Manual. The Linux
7 implementation of this interface may differ (consult the corresponding
8 Linux manual page for details of Linux behavior), or the interface may
9 not be implemented on Linux.
10
12 towctrans - wide-character transliteration
13
15 #include <wctype.h>
16
17 wint_t towctrans(wint_t wc, wctrans_t desc);
18
19
21 The towctrans() function shall transliterate the wide-character code wc
22 using the mapping described by desc. The current setting of the
23 LC_CTYPE category should be the same as during the call to wctrans()
24 that returned the value desc. If the value of desc is invalid (that
25 is, not obtained by a call to wctrans() or desc is invalidated by a
26 subsequent call to setlocale() that has affected category LC_CTYPE ),
27 the result is unspecified.
28
29 An application wishing to check for error situations should set errno
30 to 0 before calling towctrans(). If errno is non-zero on return, an
31 error has occurred.
32
34 If successful, the towctrans() function shall return the mapped value
35 of wc using the mapping described by desc. Otherwise, it shall return
36 wc unchanged.
37
39 The towctrans() function may fail if:
40
41 EINVAL desc contains an invalid transliteration descriptor.
42
43
44 The following sections are informative.
45
47 None.
48
50 The strings "tolower" and "toupper" are reserved for the standard map‐
51 ping names. In the table below, the functions in the left column are
52 equivalent to the functions in the right column.
53
54
55 towlower(wc) towctrans(wc, wctrans("tolower"))
56 towupper(wc) towctrans(wc, wctrans("toupper"))
57
59 None.
60
62 None.
63
65 towlower(), towupper(), wctrans(), the Base Definitions volume of
66 IEEE Std 1003.1-2001, <wctype.h>
67
69 Portions of this text are reprinted and reproduced in electronic form
70 from IEEE Std 1003.1, 2003 Edition, Standard for Information Technology
71 -- Portable Operating System Interface (POSIX), The Open Group Base
72 Specifications Issue 6, Copyright (C) 2001-2003 by the Institute of
73 Electrical and Electronics Engineers, Inc and The Open Group. In the
74 event of any discrepancy between this version and the original IEEE and
75 The Open Group Standard, the original IEEE and The Open Group Standard
76 is the referee document. The original Standard can be obtained online
77 at http://www.opengroup.org/unix/online.html .
78
79
80
81IEEE/The Open Group 2003 TOWCTRANS(3P)