Internationalization and localization tools


Locale-Sensitive C/C++ String Operation Function

unsigned int _strnextc(const char *string);

unsigned int _mbsnextc(const unsigned char *string);

unsigned int _wcsnextc(const wchar_t *string);

unsigned int _tcsnextc(const _TXCHAR *string);

Internationalization (I18n) Function Overview

Returns the integer value of the next character in the string.

_wcsnextc is the wide-character version of the function; its parameter is a wide character string.

_mbsnextc is the multibyte version of the function; its parameter contains multibyte characters.

_tcsnextc is the Windows-only Generic version of the function; with the _MBCS or _UNICODE compiler flags determining its mapping to either _mbsnextc or _wcsnextc.

I18n Issues

Use the appropriate version of the function as required for internationalization support, noting the following:

For Windows MBCS platforms, ensure that the multibyte code page is set properly, as _mbsnextc depends on it. By default, the multibyte code page is set to the system-default ANSI code page obtained from the operating system at program startup. Use _getmbcp and _setmbcp to query or change the current multibyte code page, respectively.

Recommended Function Replacements

Locale-Sensitive C/C++ String Operation Functions

 

Lingoport internationalization and localization services and software