Skip to content

Latest commit

 

History

History
79 lines (58 loc) · 4.07 KB

mbcjistojms-mbcjistojms-l-mbcjmstojis-mbcjmstojis-l.md

File metadata and controls

79 lines (58 loc) · 4.07 KB
description title ms.date api_name api_location api_type topic_type f1_keywords helpviewer_keywords ms.assetid
Learn more about: _mbcjistojms, _mbcjistojms_l, _mbcjmstojis, _mbcjmstojis_l
_mbcjistojms, _mbcjistojms_l, _mbcjmstojis, _mbcjmstojis_l
4/2/2020
_mbcjistojms
_mbcjmstojis
_mbcjistojms_l
_mbcjmstojis_l
_o__mbcjistojms
_o__mbcjistojms_l
_o__mbcjmstojis
_o__mbcjmstojis_l
msvcrt.dll
msvcr80.dll
msvcr90.dll
msvcr100.dll
msvcr100_clr0400.dll
msvcr110.dll
msvcr110_clr0400.dll
msvcr120.dll
msvcr120_clr0400.dll
ucrtbase.dll
api-ms-win-crt-multibyte-l1-1-0.dll
DLLExport
apiref
mbcjistojms
_mbcjistojms
_mbcjistojms_l
_mbcjmstojis_l
_mbcjmstojis
mbcjmstojis_l
mbcjistojms_l
mbcjmstojis
_mbcjmstojis_l function
_mbcjistojms function
mbcjmstojis function
_mbcjistojms_l function
_mbcjmstojis function
mbcjistojms function
mbcjmstojis_l function
mbcjistojms_l function
dece5127-b337-40a4-aa10-53320a2c9432

_mbcjistojms, _mbcjistojms_l, _mbcjmstojis, _mbcjmstojis_l

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

Important

This API cannot be used in applications that execute in the Windows Runtime. For more information, see CRT functions not supported in Universal Windows Platform apps.

Syntax

unsigned int _mbcjistojms(
   unsigned int c
);
unsigned int _mbcjistojms_l(
   unsigned int c,
   _locale_t locale
);
unsigned int _mbcjmstojis(
   unsigned int c
);
unsigned int _mbcjmstojis_l(
   unsigned int c,
   _locale_t locale
);

Parameters

c
Character to convert.

locale
Locale to use.

Return value

On Japanese locale, these functions return a converted character or return 0 if no conversion is possible. On a non-Japanese locale, these functions return the character passed in.

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. If the lead or trial byte is outside this range, errno is set to EILSEQ. For more information about this and other error codes, see errno, _doserrno, _sys_errlist, and _sys_nerr.

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. Some code points in that range don't have a character assigned, and so can't be converted.

The value c should be a 16-bit value whose upper 8 bits represent the lead byte of the character to convert and whose lower 8 bits represent the trail byte.

The output value is affected by the setting of the LC_CTYPE category setting of the locale. For more information, see setlocale. The versions of these functions without the _l suffix use the current locale for this locale-dependent behavior; the versions with the _l suffix are identical except that they use the locale parameter passed in instead. For more information, see Locale.

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

By default, this function's global state is scoped to the application. To change this behavior, see Global state in the CRT.

Requirements

Routine Required header
_mbcjistojms <mbstring.h>
_mbcjistojms_l <mbstring.h>
_mbcjmstojis <mbstring.h>
_mbcjmstojis_l <mbstring.h>

For more compatibility information, see Compatibility.

See also

Data conversion
_ismbb routines