Internationalization and localization tools


Multibyte Character Manipulation Function

int _ismbslead(const unsigned char *string, const unsigned char *current);

Internationalization (I18n) Function Overview

The _ismbslead function returns -1 if the given substring pointer current points to a valid lead byte in the multibyte character string argument; otherwise it returns 0. _ismbslead is slower than _ismbblead because it takes the string context into account.

I18n Issues

_ismbslead should only be called with multibyte characters; there are no other versions of this function.

In addition, _ismbslead depends on the multibyte code page in effect. 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 Replacements*

*If you're already using the recommended function, see I18n Issues for other reasons why Globalyzer is detecting the function.

Multibyte Character Manipulation Functions

 

Lingoport internationalization and localization services and software