![]() ![]() ![]()
|
BREW C++ Class Library & GUI Framework & XML Middleware : SophiaFramework 4.1 |
The SFXShiftJIS class is used to convert a Hiragana character into a Katakana one and vice versa, convert a 2 byte character into a 1 byte one and vice versa, etc. And the SFXShiftJIS class has only static functions.
The argument type of function of SFXShiftJIS class is SFXWideString.
In order to process a SFXAnsiString object with a function of SFXShiftJIS class, it is necesary to convert it into a SFXWideString object.
| Public Functions | |
|---|---|
| static UInt16 |
AsUInt16(
WChar param
) Convert to the value that comparable with wide characters.
|
| static WChar |
AsWChar(
UInt16 param
) Convert comparable value into Wide character.
|
| static SFCError |
HiraganaToKatakana(
SFXWideStringPtr param
) Convert the Hiragana into Katakana
|
| static Bool |
IsFullAlpha(
WChar param
) Check whether the character is a full-size alphabet or not.
|
| static Bool |
IsFullDigit(
WChar param
) Check whether the character is a full-size digit or not.
|
| static Bool |
IsFullHiragana(
WChar param
) Check whether the character is a full-size Hiragana or not.
|
| static Bool |
IsFullKatakana(
WChar param
) Check whether the character is a full-size Katakana or not.
|
| static Bool |
IsFullSymbol(
WChar param
) Check whether the character is a full-size symbol or not.
|
| static Bool |
IsHalfAlpha(
WChar param
) Check whether the character is a half-size alphabet or not.
|
| static Bool |
IsHalfDigit(
WChar param
) Check whether the character is a half-size digit or not.
|
| static Bool |
IsHalfKatakana(
WChar param
) Check whether the character is a half-size Katakana or not.
|
| static Bool |
IsHalfSymbol(
WChar param
) Check whether the character is a half-size symbol or not.
|
| static SFCError |
KatakanaToHiragana(
SFXWideStringPtr param
) Convert Katakana into Hiragana
|
| static SFCError |
ToFullAlpha(
SFXWideStringPtr param
) Convert half-size alphabet into full-size alphabet.
|
| static SFCError |
ToFullDigit(
SFXWideStringPtr param
) Convert half-size digit into full-size digit.
|
| static SFCError |
ToFullKatakana(
SFXWideStringPtr param
) Convert half-size Katakana into full-size Katakana.
|
| static SFCError |
ToFullSymbol(
SFXWideStringPtr param
) Convert half-size alphabet into full-size alphabet.
|
| static SFCError |
ToHalfAlpha(
SFXWideStringPtr param
) Convert full-size alphabet into half-size alphabet.
|
| static SFCError |
ToHalfDigit(
SFXWideStringPtr param
) Convert full-size digit into half-size digit.
|
| static SFCError |
ToHalfKatakana(
SFXWideStringPtr param
) Convert full-size Katakana into half-size Katakana.
|
| static SFCError |
ToHalfSymbol(
SFXWideStringPtr param
) Convert full-size symbol into half-size symbol.
|
When convert the Shift_JIS character to Wide character with BREW API, as the endian of the value of WChar character gets reversed , the consecutive characters cannot be compared.
AsUInt16() function convert the character whose endian reversed into comparable value.
AsWChar() function do the inversion of SFXShiftJIS::AsUInt16.
[ public, static ] SFCError HiraganaToKatakana( SFXWideStringPtr param // string to convert );
The SFXShiftJIS::IsFullKatakana function checks whether or not the character code is greater than 0x8340 and less than 0x8396, except 0x837F.
The SFXShiftJIS::IsHalfSymbol function checks whether or not the character is one of the following.
[ public, static ] SFCError KatakanaToHiragana( SFXWideStringPtr param // string to convert );
[ public, static ] SFCError ToFullAlpha( SFXWideStringPtr param // string to convert );
[ public, static ] SFCError ToFullDigit( SFXWideStringPtr param // string to convert );
[ public, static ] SFCError ToFullKatakana( SFXWideStringPtr param // string to convert );
[ public, static ] SFCError ToFullSymbol( SFXWideStringPtr param // string to convert );
[ public, static ] SFCError ToHalfAlpha( SFXWideStringPtr param // string to convert );
[ public, static ] SFCError ToHalfDigit( SFXWideStringPtr param // string to convert );
[ public, static ] SFCError ToHalfKatakana( SFXWideStringPtr param // string to convert );
[ public, static ] SFCError ToHalfSymbol( SFXWideStringPtr param // string to convert );
|
Copyright (C) 2002 - 2009 Sophia Cradle, Inc. All Rights Reserved. |
![]() ![]() ![]()
|