wconv.3c (2010 09)
w
wconv(3C) wconv(3C)
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 conver-
sion 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.
SEE ALSO
conv(3C), multibyte(3C), wctype(3C), setlocale(3C), lang(5), thread_safety(5).
STANDARDS CONFORMANCE
towlower(): XPG4
towupper(): XPG4
HP-UX 11i Version 3: September 2010 − 1 − Hewlett-Packard Company 1