Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Watcom C Library Reference - <u>synopsis:</u> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
Synopsis:
    #include <mbstring.h>
    unsigned int _mbctohira( unsigned int ch );

Description:
    The _mbctohira converts a double-byte Katakana character to a Hiragana
    character.  A double-byte Katakana character is any character for which
    the following expression is true:


         0x8340 <= ch <= 0x8396  &&  ch != 0x837F

    Any Katakana character whose value is less than 0x8393 is converted to
    Hiragana (there are 3 extra Katakana characters that have no
    equivalent).

    Note:  The Japanese double-byte character set includes Kanji, Hiragana,
    and Katakana characters - both alphabetic and numeric.  Kanji is the
    ideogram character set of the Japanese character set.  Hiragana and
    Katakana are two types of phonetic character sets of the Japanese
    character set.  The Hiragana code set includes 83 characters and the
    Katakana code set includes 86 characters.

    Note:  This function was called  jtohira in earlier versions.

Returns:
    The _mbctohira function returns the argument value if the argument is
    not a double-byte Katakana character; otherwise, the equivalent Hiragana
    character is returned.


Example:
    #include <stdio.h>
    #include <mbctype.h>
    #include <mbstring.h>

    unsigned int chars[] = {
        0x8340,
        0x8364,
        0x8396
    };

    #define SIZE sizeof( chars ) / sizeof( unsigned int )

    void main()
      {
        int   i;

        _setmbcp( 932 );
        for( i = 0; i < SIZE; i++ ) {
          printf( "%#6.4x - %#6.4x\n",
                  chars[ i ],
                  _mbctohira( chars[ i ] ) );
        }
      }

    produces the following:

    0x8340 - 0x829f
    0x8364 - 0x82c3
    0x8396 - 0x8396

Classification:
    WATCOM

Systems:
    All

See Also:
    _mbccmp, _mbccpy, _mbcicmp, _mbcjistojms, _mbcjmstojis, _mbclen,
    _mbctokata, _mbctolower, _mbctombb, _mbctoupper, mblen, mbrlen, mbrtowc,
    mbsrtowcs, mbstowcs, mbtowc, sisinit, wcrtomb, wcsrtombs, wcstombs,
    wctob, wctomb

See Also: _mbcjistojms _mbcjmstojis

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson