Internationalization and localization tools


Multibyte Character Function

unsigned int _mbbtombc(unsigned int c);

Internationalization (I18n) Function Overview

The _mbbtombc function converts a 1-byte multibyte character, in the range 0x20-0x7E or 0xA1-0xDF, to a corresponding 2-byte multibyte character. It returns the converted character if successful, else the original c character in the event of an error.

I18n Issues

_mbbtombc should only be called with multibyte characters; there are no other versions of this function. In addition, _mbbtombc 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 Functions

 

Lingoport internationalization and localization services and software