Internationalization and localization tools


Character Manipulation Function

int isleadbyte(int c);

int _istleadbyte(_TINT c);

Internationalization (I18n) Function Overview

The function isleadbyte tests if the argument is a valid first byte of a multibyte character, using the LC_CTYPE category setting of the current locale. In the "C" locale and in single-byte character set (SBCS) locales, isleadbyte always returns FALSE (0).

There is no wide-character version of this function, since lead bytes only apply to multibyte characters.

_istleadbyte is the Generic version of the function; with the _MBCS or _UNICODE compiler flags determining its mapping to either isleadbyte or FALSE, since wide-characters don't have lead bytes.

I18n Issues

Use the appropriate version of the function as required for internationalization support, ensuring that the current locale is set properly.

Recommended Replacements*

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

Character Manipulation Functions

 

Lingoport internationalization and localization services and software