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 _mbctokata( unsigned int ch );

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


         0x829F <= c <= 0x82F1

    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  jtokata in earlier versions.

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


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

    unsigned int chars[] = {
        0x829F,
        0x82B0,
        0x82F1
    };

    #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 ],
                  _mbctokata( chars[ i ] ) );
        }
      }

    produces the following:

    0x829f - 0x8340
    0x82b0 - 0x8351
    0x82f1 - 0x8393

Classification:
    WATCOM

Systems:
    All

See Also:
    _mbccmp, _mbccpy, _mbcicmp, _mbcjistojms, _mbcjmstojis, _mbclen,
    _mbctohira, _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