![]() ![]() ![]()
|
SophiaFramework UNIVERSE 5.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 Bool |
IsPassword(
WChar param
) Check whether the specified character is the special character for inputing a passwword 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.
|
| static SFCError |
ToPassword(
SFXWideStringPtr param
) Convert the specified string using the special character for inputing a passwword.
|
When converting the Shift_JIS character to the Wide character with BREW API, the consecutive characters cannot be compared since the endian of the WChar character gets reversed.
The AsUInt16() function reverses the endian so that they can be compared.
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.
Check whether the specified character is the "*"(0x2A) character for inputing a passwword or not.
[ 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 );
[ public, static ] SFCError ToPassword( SFXWideStringPtr param // string to be converted );
Convert the specified string using the special character for inputing a passwword. Each character is converted into the "*"(0x2A) character.
|
Copyright(c) 2002 - 2010 Sophia Cradle Incorporated All Rights Reserved. |
![]() ![]() ![]()
|