wconv(3W) 04 Feb 1992 wconv(3W)
NAME
wconv: towupper, towlower - translate characters
SYNOPSIS
#include <ctype.h>
#include <widec.h>
#include <wctype.h>
#include <xctype.h>
wchar_t towupper(wchar_t c);
wchar_t towlower(wchar_t c);
DESCRIPTION
If the argument to towupper() represents a lower-case letter of the
ASCII or supplementary code sets, the result is the corresponding
upper-case letter. If the argument to towlower() represents an upper-
case letter of the ASCII or supplementary code sets, the result is the
corresponding lower-case letter.
In the case of all other arguments, the return value is unchanged.
The classification of upper-case and lower-case and the translation
between them is based on the LC_CTYPE category of the current locale.
The table which is used for translation is generated by wchrtbl(1M).
NOTES
These functions can support either typedef unsigned short wchart or
typedef long wchart conditionally, see mbchar(3W).
FILES
/usr/include/mlx-loc/xctype.h
language dependent character classification and
conversion macros. The location of this file is
locale-specific, and it may not exist for some
locales. For example the japan locale uses
/usr/include/mlx-j/xctype.h.
SEE ALSO
setlocale(1), wchrtbl(1M), ctype(3C), mbchar(3W), wctype(3W).
Page 1 Reliant UNIX 5.44 2, 194