Internationalization and localization tools


Wide Character Manipulation Functions

 

Internationalization (I18n) Issue:

These functions operate upon wide characters of type wchar_t *. The functions test wide characters in various ways and convert them between upper and lower case. All functions in this category accept wide character arguments. These functions often replace single character manipulation functions as a result of internationalization reengineering. To operate correctly, the underlying wchar_t * type must be properly implemented.

I18n Solution:

Use the appropriate equivalent wide character manipulation function when reengineering an application for internationalization.

I18n Discussion:

Wide character manipulation functions handle unique code point values for each character in the character set as specified by the compilation environment. For an internationalized application using the UTF-16 or UCS-2 Unicode character sets, the wchar_t data type has a size of 16 bits. On Linux/Unix platforms, UTF-32 encoding is used, with a wchar_t character occupying 32 bits. To avoid dependency on the size of a wide-character, always use the wchar_t data type and specify character sizes in terms of the number of wide-characters.

To convert between wide characters and multibyte characters, please see the Multibyte to Wide Character Conversion Functions.

Click on a function for more information:

_cgetws

_cputws

_fgetwchar

_fputwchar

_getwch

_getwche

_getws

_i64tow

_itow

_itow_s

_ltow

_ltow_s

_putwch

_ui64tow

_ui64tow_s

_ultow

_ultow_s

_ungetwch

fgetwc

fgetwc_unlocked

fgetws

fgetws_unlocked

fputwc

fputwc_unlocked

fputws

fputws_unlocked

getwc

getwc_unlocked

getwchar

getwchar_unlocked

iswalnum

iswalpha

iswascii

iswblank

iswcntrl

iswctype

iswdigit

iswgraph

iswlower

iswprint

iswpunct

iswspace

iswupper

iswxdigit

putwc

putwc_unlocked

putwchar

putwchar_unlocked

putws/_putws

towctrans

towlower

towupper

ungetwc

wctrans

wctype

wcwidth

 

 Locale-Sensitive C++ Methods

 

Lingoport internationalization and localization services and software