NAME
towupper(), towlower() — translate wide characters
SYNOPSIS
#include <wctype.h>
wint_t towupper(wint_t wc);
wint_t towlower(wint_t wc);
Remarks:
These functions are compliant with the
XPG4
Worldwide Portability Interface wide-character conversion functions.
They parallel the 8-bit character conversion functions defined in
conv(3C).
DESCRIPTION
towupper()
and
towlower()
have as domain a
wint_t,
the value of which is representable as a
wchar_t
or the value
WEOF.
If the argument has any other value, the behavior is undefined.
If the argument of
towupper()
represents a lowercase letter,
the result is the corresponding uppercase letter.
If the argument of
towlower()
represents an uppercase letter,
the result is the corresponding lowercase letter.
All other arguments are returned unchanged.
Definitions for these functions, the types
wint_t,
wchar_t,
and the value
WEOF
are provided in the
<wchar.h>
header.
EXTERNAL INFLUENCES
Locale
The
LC_CTYPE
category determines the translations to be done.
International Code Set Support
Single-byte and multi-byte character code sets are supported.
AUTHOR
wconv()
was developed by IBM, OSF, and HP.
STANDARDS CONFORMANCE
towlower(): XPG4
towupper(): XPG4