#include <wctype.h>
wctrans_t wctrans(const char *charclass);
The wctrans() function
is defined for valid character mapping names defined in the
current locale. The specified character class is a string
identifying a generic character mapping name for which codeset-specific
information is required. The following character mapping names
are defined in all locales:
"tolower"
"toupper"
The function returns a value of
type wctrans_t,
which can be used as the second argument to subsequent calls to towctrans(). The wctrans() function
determines values of wctrans_t according to the rules of the coded
character set defined by character mapping information in the
program's locale (category LC_CTYPE). The values returned by wctrans()
are valid until a call to setlocale() that modifies the category LC_CTYPE.
- charclass
-
Is a character class name defining a mapping descriptor to be returned.
On success, wctrans()
returns a non-zero object of type wctrans_t that can be used
in calls to towctrans() Otherwise it returns 0, and
sets errno to one of the following values:
- EINVAL
-
The specified character mapping
is not valid in the current locale.
ANSI/ISO 9899-1990/AM 1-1995
MT-Safe, with exceptions.
This function is MT-Safe as long as no thread calls setlocale() while
this function is executing.
None.
MKS Toolkit for Professional Developers
MKS Toolkit for Enterprise Developers
MKS Toolkit for Enterprise Developers 64-Bit Edition
- Functions:
- setlocale(), towctrans(), towlower(), towupper()
MKS Toolkit 9.2 Documentation Build 16.