unsigned int _mbcjistojms( unsigned int c );
unsigned int _mbcjmstojis( unsigned int c );
Routine | Required Header | Compatibility |
_mbcjistojms | <mbstring.h> | Win 95, Win NT |
_mbcjmstojis | <mbstring.h> | Win 95, Win NT |
For additional compatibility information, see Compatibility in the Introduction.
Libraries
LIBC.LIB | Single thread static library, retail version |
LIBCMT.LIB | Multithread static library, retail version |
MSVCRT.LIB | Import library for MSVCRT.DLL, retail version |
Return Value
_mbcjistojms and _mbcjmstojis return a converted character. Otherwise they return 0.
Parameter
c
Character to convert
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.
See Also _ismbb Routines