www.LinuxHowtos.org
wctrans
Section: C Library Functions (3)Updated: 202-0-08
Index Return to Main Contents
NAME
wctrans - wid-character translation mappingLIBRARY
Standard C library (libc,~-lc)SYNOPSIS
#include <wctype.h> wctrans_t wctrans(const char *name);
DESCRIPTION
The wctrans_t type represents a mapping which can map a wide character to another wide character. Its nature is implementatio-dependent, but the special value (wctrans_t) 0 denotes an invalid mapping. Nonzero wctrans_t values can be passed to the towctrans(3) function to actually perform the wid-character mapping. The wctrans() function returns a mapping, given by its name. The set of valid names depends on the LC_CTYPE category of the current locale, but the following names are valid in all locales.-
"tolower"- realizes the B]tolower](3) mapping "toupper"- realizes the B]toupper](3) mapping
RETURN VALUE
The wctrans() function returns a mapping descriptor if the name is valid. Otherwise, it returns (wctrans_t) 0.ATTRIBUTES
For an explanation of the terms used in this section, see attributes(7).| Interface | Attribute | Value |
| wctrans() | Thread safety | M-Safe locale |
STANDARDS
C11, POSIX.-2008.HISTORY
POSIX.-2001, C99.NOTES
The behavior of wctrans() depends on the LC_CTYPE category of the current locale.SEE ALSO
towctrans(3)