_mbcjistojms, _mbcjmstojis
Important This document may not represent best practices for current development, links to downloads and other resources may no longer be valid. Current recommended version can be found here. ArchiveDisclaimer

_mbcjistojms, _mbcjmstojis

Convert between Japan Industry Standard (JIS) and Japan Microsoft (JMS) characters.

unsigned int _mbcjistojms(
   unsigned int c 
);
unsigned int _mbcjmstojis(
   unsigned int c 
);

Parameter

c
Character to convert.

Return Value

_mbcjistojms and _mbcjmstojis return a converted character. Otherwise, they return 0.

Remarks

The _mbcjistojms function converts a Japan Industry Standard (JIS) character to a Microsoft Kanji (Shift JIS) character. The character is converted only if the lead and trail bytes are in the range 0x21 – 0x7E.

The _mbcjmstojis function converts a Shift JIS character to a JIS character. The character is converted only if the lead byte is in the range 0x81 – 0x9F or 0xE0 – 0xFC, and the trail byte is in the range 0x40 – 0x7E or 0x80 – 0xFC.

The value 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.

In earlier versions, _mbcjistojms and _mbcjmstojis were called jistojms and jmstojis, repectively. _mbcjistojms and _mbcjmstojis should be used instead.

Requirements

Routine Required header Compatibility
_mbcjistojms <mbstring.h> Win 98, Win Me, Win NT, Win 2000, Win XP
_mbcjmstojis <mbstring.h> Win 98, Win Me, Win NT, Win 2000, Win XP

For additional compatibility information, see Compatibility in the Introduction.

Libraries

All versions of the C run-time libraries.

See Also

Data Conversion Routines | _ismbb Routines | Run-Time Routines and .NET Framework Equivalents

Show:
© 2016 Microsoft