PrevNextUpHome SophiaFramework UNIVERSE 5.1
SFXShiftJIS
Class for processing a Shift_JIS character.
#include <SFXShiftJIS.h.hpp>
class SFXShiftJIS;
SFMTYPEDEFCLASS(SFXShiftJIS)

Description

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.

Member

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.

SFXShiftJIS::AsUInt16
Convert to the value that comparable with wide characters.
[ public, static ]
UInt16 AsUInt16(
    WChar param   // character to convert
);

Description

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.

Reference

SFXShiftJIS::AsWChar


SFXShiftJIS::AsWChar
Convert comparable value into Wide character.
[ public, static ]
WChar AsWChar(
    UInt16 param   // value to compare
);

Description

AsWChar() function do the inversion of SFXShiftJIS::AsUInt16.

Reference

SFXShiftJIS::AsUInt16


SFXShiftJIS::HiraganaToKatakana
Convert the Hiragana into Katakana
[ public, static ]
SFCError HiraganaToKatakana(
    SFXWideStringPtr param   // string to convert
);

Return value

  • If succeeds: SFERR_NO_ERROR
  • String to convert is null: SFERR_INVALID_PARAM

Reference

SFXShiftJIS::KatakanaToHiragana


SFXShiftJIS::IsFullAlpha
Check whether the character is a full-size alphabet or not.
[ public, static ]
Bool IsFullAlpha(
    WChar param   // character to check
);

Return value

  • If the character is a full-size alphabet: true
  • Otherwise: false

Reference

SFXShiftJIS::IsHalfAlpha


SFXShiftJIS::IsFullDigit
Check whether the character is a full-size digit or not.
[ public, static ]
Bool IsFullDigit(
    WChar param   // character to check
);

Return value

  • If the character is a full-size digit: true
  • Otherwise: false

Reference

SFXShiftJIS::IsHalfDigit


SFXShiftJIS::IsFullHiragana
Check whether the character is a full-size Hiragana or not.
[ public, static ]
Bool IsFullHiragana(
    WChar param   // character to check
);

Return value

  • If the character is a full-size Hiragana: true
  • Otherwise: false

Reference

SFXShiftJIS::IsFullKatakana


SFXShiftJIS::IsFullKatakana
Check whether the character is a full-size Katakana or not.
[ public, static ]
Bool IsFullKatakana(
    WChar param   // character to check
);

Return value

  • If the character is a full-size Katakana: true
  • Otherwise: false

Description

The SFXShiftJIS::IsFullKatakana function checks whether or not the character code is greater than 0x8340 and less than 0x8396, except 0x837F.

Reference

SFXShiftJIS::IsHalfKatakana | SFXShiftJIS::IsFullHiragana


SFXShiftJIS::IsFullSymbol
Check whether the character is a full-size symbol or not.
[ public, static ]
Bool IsFullSymbol(
    WChar param   // character to check
);

Return value

  • If the character is a full-size symbol: true
  • Otherwise: false

Reference

SFXShiftJIS::IsHalfSymbol | SFXShiftJIS::ToHalfSymbol


SFXShiftJIS::IsHalfAlpha
Check whether the character is a half-size alphabet or not.
[ public, static ]
Bool IsHalfAlpha(
    WChar param   // character to check
);

Return value

  • If the character is a half-size alphabet: true
  • Otherwise: false

Reference

SFXShiftJIS::IsFullAlpha


SFXShiftJIS::IsHalfDigit
Check whether the character is a half-size digit or not.
[ public, static ]
Bool IsHalfDigit(
    WChar param   // character to check
);

Return value

  • If the character is a half-size digit: true
  • Otherwise: false

Reference

SFXShiftJIS::IsFullDigit


SFXShiftJIS::IsHalfKatakana
Check whether the character is a half-size Katakana or not.
[ public, static ]
Bool IsHalfKatakana(
    WChar param   // character to check
);

Return value

  • If the character is a half-size Katakana: true
  • Otherwise: false

Reference

SFXShiftJIS::IsFullKatakana


SFXShiftJIS::IsHalfSymbol
Check whether the character is a half-size symbol or not.
[ public, static ]
Bool IsHalfSymbol(
    WChar param   // character to check
);

Return value

  • If the character is a half-size symbol: true
  • Otherwise: false

Description

The SFXShiftJIS::IsHalfSymbol function checks whether or not the character is one of the following.

  • !
  • "
  • #
  • $
  • %
  • &
  • (
  • )
  • *
  • +
  • ,
  • -
  • .
  • /
  • :
  • ;
  • <
  • =
  • >
  • ?
  • @
  • [
  • ]
  • \
  • ^
  • _
  • `
  • {
  • |
  • }
  • ~

Reference

SFXShiftJIS::IsFullSymbol | SFXShiftJIS::ToFullSymbol


SFXShiftJIS::IsPassword
Check whether the specified character is the special character for inputing a passwword or not.
[ public, static ]
Bool IsPassword(
    WChar param   // character to be checked
);

Return value

  • If the specified character is the special character for inputing a passwword: true
  • Otherwise: false

Description

Check whether the specified character is the "*"(0x2A) character for inputing a passwword or not.

Reference

SFXShiftJIS::ToPassword


SFXShiftJIS::KatakanaToHiragana
Convert Katakana into Hiragana
[ public, static ]
SFCError KatakanaToHiragana(
    SFXWideStringPtr param   // string to convert
);

Return value

  • If succeeds: SFERR_NO_ERROR
  • If the specified string is null: SFERR_INVALID_PARAM

SFXShiftJIS::ToFullAlpha
Convert half-size alphabet into full-size alphabet.
[ public, static ]
SFCError ToFullAlpha(
    SFXWideStringPtr param   // string to convert
);

Return value

  • If succeeds: SFERR_NO_ERROR
  • If the specified string is null: SFERR_INVALID_PARAM

SFXShiftJIS::ToFullDigit
Convert half-size digit into full-size digit.
[ public, static ]
SFCError ToFullDigit(
    SFXWideStringPtr param   // string to convert
);

Return value

  • If succeeds: SFERR_NO_ERROR
  • If the specified string is null: SFERR_INVALID_PARAM

SFXShiftJIS::ToFullKatakana
Convert half-size Katakana into full-size Katakana.
[ public, static ]
SFCError ToFullKatakana(
    SFXWideStringPtr param   // string to convert
);

Return value

  • If succeeds: SFERR_NO_ERROR
  • If the specified string is null: SFERR_INVALID_PARAM
  • If insufficient memory: SFERR_NO_MEMORY

Reference

SFXShiftJIS::ToHalfKatakana


SFXShiftJIS::ToFullSymbol
Convert half-size alphabet into full-size alphabet.
[ public, static ]
SFCError ToFullSymbol(
    SFXWideStringPtr param   // string to convert
);

Return value

  • If succeeds: SFERR_NO_ERROR
  • If the specified string is null: SFERR_INVALID_PARAM

Reference

SFXShiftJIS::ToHalfSymbol


SFXShiftJIS::ToHalfAlpha
Convert full-size alphabet into half-size alphabet.
[ public, static ]
SFCError ToHalfAlpha(
    SFXWideStringPtr param   // string to convert
);

Return value

  • If succeeds: SFERR_NO_ERROR
  • If the specified string is null: SFERR_INVALID_PARAM

Reference

SFXShiftJIS::IsHalfAlpha | SFXShiftJIS::ToFullAlpha


SFXShiftJIS::ToHalfDigit
Convert full-size digit into half-size digit.
[ public, static ]
SFCError ToHalfDigit(
    SFXWideStringPtr param   // string to convert
);

Return value

  • If succeeds: SFERR_NO_ERROR
  • If the specified string is null: SFERR_INVALID_PARAM

Reference

SFXShiftJIS::ToFullDigit


SFXShiftJIS::ToHalfKatakana
Convert full-size Katakana into half-size Katakana.
[ public, static ]
SFCError ToHalfKatakana(
    SFXWideStringPtr param   // string to convert
);

Return value

  • If succeeds: SFERR_NO_ERROR
  • If the specified string is null: SFERR_INVALID_PARAM
  • If insufficient memory: SFERR_NO_MEMORY

Reference

SFXShiftJIS::ToFullKatakana


SFXShiftJIS::ToHalfSymbol
Convert full-size symbol into half-size symbol.
[ public, static ]
SFCError ToHalfSymbol(
    SFXWideStringPtr param   // string to convert
);

Return value

  • If succeeds: SFERR_NO_ERROR
  • If the specified string is null: SFERR_INVALID_PARAM

Reference

SFXShiftJIS::IsHalfSymbol | SFXShiftJIS::ToFullSymbol


SFXShiftJIS::ToPassword
Convert the specified string using the special character for inputing a passwword.
[ public, static ]
SFCError ToPassword(
    SFXWideStringPtr param   // string to be converted
);

Return value

  • If succeeds: SFERR_NO_ERROR
  • If the specified string is "null": SFERR_INVALID_PARAM

Description

Convert the specified string using the special character for inputing a passwword. Each character is converted into the "*"(0x2A) character.

Reference

SFXShiftJIS::IsPassword