Internationalization and localization tools


Multibyte Character Function

unsigned int _mbcjistojms(unsigned int c);

Internationalization (I18n) Function Overview

The _mbcjistojms function converts a Japanese Industry Standard (JIS) character to a Microsoft Kanji (Shift JIS or JMS) character, and returns the converted character if successful; else it returns the original, unconverted character. c should be a 16-bit value whose upper eight bits represent the lead byte of the character to convert and whose lower eight bits represent the trail byte, both in the range 0x21-0x7E.

I18n Issues

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

In an internationalized application, a function such as _mbcjistojms, which operates on a specific character set (JIS in this case), should not be used. Instead, the user's locale should determine the multibyte character set of the application, and generic multibyte functions should be used to operate on the multibyte character strings.

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