Export (0) Print
Expand All
Expand Minimize
This topic has not yet been rated - Rate this topic

_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

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft. All rights reserved.