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

_mbctohira, _mbctohira_l, _mbctokata, _mbctokata_l 

Converts between hiragana and katakana characters.


unsigned int _mbctohira(
   unsigned int c 
);
unsigned int _mbctohira_l(
   unsigned int c,
   _locale_t locale
);
unsigned int _mbctokata(
   unsigned int c 
);
unsigned int _mbctokata_l(
   unsigned int c,
   _locale_t locale
);

Parameters

c

Multibyte character to convert.

locale

Locale to use.

Each of these functions returns the converted character c, if possible. Otherwise it returns the character c unchanged.

The _mbctohira and _mbctokata functions test a character c and, if possible, apply one of the following conversions.

Routines Converts

_mbctohira,_mbctohira_l

Multibyte katakana to multibyte hiragana.

_mbctokata,_mbctokata_l

Multibyte hiragana to multibyte katakana.

The output value is affected by the setting of the LC_CTYPE category setting of the locale; see setlocale for more information. 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.

In previous versions, _mbctohira was called jtohira and _mbctokata was called jtokata. For new code, use the new names instead.

Routine Required header Compatibility

_mbctohira

<mbstring.h>

Windows 95, Windows 98, Windows 98 Second Edition, Windows Millennium Edition, Windows NT 4.0, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003

_mbctohira_l

<mbstring.h>

Windows 95, Windows 98, Windows 98 Second Edition, Windows Millennium Edition, Windows NT 4.0, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003

_mbctokata

<mbstring.h>

Windows 95, Windows 98, Windows 98 Second Edition, Windows Millennium Edition, Windows NT 4.0, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003

_mbctokata_l

<mbstring.h>

Windows 95, Windows 98, Windows 98 Second Edition, Windows Millennium Edition, Windows NT 4.0, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003

For more compatibility information, see Compatibility in the Introduction.

Not applicable. To call the standard C function, use PInvoke. For more information, see Platform Invoke Examples.

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.