[Previous] [Contents] [Next]

wctrans()

Define character mapping

Synopsis:

#include <wctype.h>

wctrans_t wctrans(const char *property);

Library:

libc

Description:

The wctrans() function determines a mapping rule for wide-character codes according to the category LC_CTYPE, particularly for use with towctrans().

The following mappings are defined in all locales although additional classes may be defined for LC_CTYPE. Use setlocale() to modify the category LC_CTYPE.

Defined Mappings
tolower toupper

Returns:

0
Failure; character mapping not valid for current locale
wctrans_t
Success; object usable by towctrans()

Classification:

ANSI

Safety:
Cancellation point No
Interrupt handler Yes
Signal handler Yes
Thread Yes

See also:

String manipulation functions

Wide-character functions


[Previous] [Contents] [Next]