Internationalization and localization tools


Multibyte Character Manipulation Function

int _ismbclegal(unsigned int c);

int _istlegal(_TINT c);

Internationalization (I18n) Function Overview

The _ismbclegal function returns a non-zero value if c is a valid multibyte character.

As this function pertains only to multibyte characters, there is no wide version of _ismbclegal. Instead, the Generic _istlegal function maps to FALSE when the _UNICODE flag is set and to _ismbclegal when the _MBCS compiler flag is set.

I18n Issues

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

The _ismbclegal function 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