Internationalization and localization tools


Multibyte and Wide Character Conversion Functions

Internationalization (I18n) Discussion:

The following library functions convert between the multibyte and wide character representations of extended characters. When possible, the internationalization design should attempt to minimize the amount of these character conversions. However, there are some situations where these functions may be indispensable, such as the necessity to serve web pages in a user's native encoding.

Usage:

The following code illustration applies to the mbtowc function:

#include <stdlib.h>
int mbtowc( wchar_t *pwc, const char *s, size_t n );

mbtowc converts the multibyte character pointed to by s (which is no longer than n) into its corresponding wide character code and stores the character in pwc (if not NULL). These functions may be affected by the LC_CTYPE category of the current locale.

Click on a function for more information:

btowc

mblen

mbrlen

mbrtowc

mbsnrtowcs

mbsrtowcs

mbstowcs

mbtowc

wcrtomb

wcsnrtombs

wcsrtombs

wcstombs

wctob

wctomb

 

 Locale-Sensitive C++ Methods

 

Lingoport internationalization and localization services and software