Internationalization and localization tools


Multibyte Character Function

unsigned int _mbcjmstojis(unsigned int c);

Internationalization (I18n) Function Overview

The _mbcjmstojis function converts a Microsoft Kanji (Shift JIS or JMS) character to a Japanese Industry Standard (JIS) 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, in the range 0x81-0x9F or 0xE0-0xFC, and whose lower eight bits represent the trail byte, in the range 0x40-0x7E or 0x80-0xFC.

I18n Issues

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

In an internationalized application, a function such as _mbcjmstojis, which operates on a specific character set (Shift 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