Determines a mapping from one set of wide-character codes to another.
wctrans_t wctrans(const char *property );
Routine | Required Header | Compatibility |
wctrans | <wctype.h> | Win 95, Win NT |
For additional compatibility information, see Compatibility in the Introduction.
Libraries
LIBCP.LIB | Single thread static library, retail version |
LIBCPMT.LIB | Multithread static library, retail version |
MSVCPRT.LIB | Import library for MSVCRT.DLL, retail version |
Return Value
If the LC_CTYPE category of the current locale does not define a mapping whose name matches the property string property, the function returns zero. Otherwise, it returns a nonzero value suitable for use as the second argument to a subsequent call to towctrans.
Parameters
property property string
Remarks
This function determines a mapping from one set of wide-character codes to another.
The following pairs of calls have the same behavior in all locales (but an implementation can define additional mappings even in the "C" locale):
tolower( c ) same as towctrans( c, wctrans("towlower" ) )
towupper( c ) same as towctrans( c, wctrans( "toupper" ) )
See Also setlocale