JPLangUtil Class Reference

class JPLangUtil

This is the only class provided buy the JPLangUtil Library, and is intended for encapsulation only. As such, it should not be instantiated.

JPLangUtil.lib
Since
2.6
Public Member Functions
IMPORT_C TIntConvertFullHiragnaToFullKatakana(const TDesC16 &, TDes16 &)
IMPORT_C TIntConvertFullToHalfWidth(const TDesC16 &, TDes16 &)
IMPORT_C TIntConvertFullToHalfWidthKatakana(const TDesC16 &, TDes16 &)
IMPORT_C TIntConvertHalfToFullWidth(const TDesC16 &, TDes16 &)
IMPORT_C TIntConvertHalfToFullWidthKatakana(const TDesC16 &, TDes16 &)
IMPORT_C TBoolIsFullWidth(const TText)
IMPORT_C TBoolIsHalfWidth(const TText)
IMPORT_C TBoolIsHiragana(const TText)
IMPORT_C TBoolIsKanji(const TText)
IMPORT_C TBoolIsKatakana(const TText)

Member Functions Documentation

ConvertFullHiragnaToFullKatakana(const TDesC16 &, TDes16 &)

IMPORT_C TIntConvertFullHiragnaToFullKatakana(const TDesC16 &aUnicodeSource,
TDes16 &aUnicodeTarget
)[static]

Converts Full-width Hiragana and Special Character text found in aUnicodeSource to their Full-width counterparts and places the resulting text into aUnicodeTarget.

Parameters

const TDesC16 & aUnicodeSourceDescriptor that contains the text to be converted.
TDes16 & aUnicodeTargetThe target descriptor for the converted text.

ConvertFullToHalfWidth(const TDesC16 &, TDes16 &)

IMPORT_C TIntConvertFullToHalfWidth(const TDesC16 &aUnicodeSource,
TDes16 &aUnicodeTarget
)[static]

Converts all Full-width conformant text found in aUnicodeSource to their Half-width counterparts and places the resulting text into aUnicodeTarget. Only those characters with existing Half-width variants are converted. There will be a 2-for-1 conversion for each Full-width Voiced and Semi-voiced Katakana character.

Parameters

const TDesC16 & aUnicodeSourceDescriptor that contains the text to be converted.
TDes16 & aUnicodeTargetThe target descriptor for the converted text.

ConvertFullToHalfWidthKatakana(const TDesC16 &, TDes16 &)

IMPORT_C TIntConvertFullToHalfWidthKatakana(const TDesC16 &aUnicodeSource,
TDes16 &aUnicodeTarget
)[static]

Converts Full-width Katakana and Special Character text found in aUnicodeSource to their Half-width counterparts and places the resulting text into aUnicodeTarget. There will be a 2-for-1 conversion for each Full-width Voiced and Semi-voiced Katakana character.

Parameters

const TDesC16 & aUnicodeSourceDescriptor that contains the text to be converted.
TDes16 & aUnicodeTargetThe target descriptor for the converted text.

ConvertHalfToFullWidth(const TDesC16 &, TDes16 &)

IMPORT_C TIntConvertHalfToFullWidth(const TDesC16 &aUnicodeSource,
TDes16 &aUnicodeTarget
)[static]

Converts all Half-width conformant text (including ASCII, Special Characters and Katakana) found in aUnicodeSource to their Full-width counterparts and places the resulting text into aUnicodeTarget.

Parameters

const TDesC16 & aUnicodeSourceDescriptor that contains the text to be converted.
TDes16 & aUnicodeTargetThe target descriptor for the converted text.

ConvertHalfToFullWidthKatakana(const TDesC16 &, TDes16 &)

IMPORT_C TIntConvertHalfToFullWidthKatakana(const TDesC16 &aUnicodeSource,
TDes16 &aUnicodeTarget
)[static]

Converts Half-width Katakana and Special Character text found in aUnicodeSource to their Full-width counterparts and places the resulting text into aUnicodeTarget.

Parameters

const TDesC16 & aUnicodeSourceDescriptor that contains the text to be converted.
TDes16 & aUnicodeTargetThe target descriptor for the converted text.

IsFullWidth(const TText)

IMPORT_C TBoolIsFullWidth(const TTextaUnicodeChar)[static]

Returns ETrue if aUnicodeChar is Full-width. Essentially, all text that is not Half-width.

Parameters

const TText aUnicodeCharThe unicode character to test.

IsHalfWidth(const TText)

IMPORT_C TBoolIsHalfWidth(const TTextaUnicodeChar)[static]

Returns ETrue if aUnicodeChar is Half-width according to the UNICODE definition of the term.

Parameters

const TText aUnicodeCharThe unicode character to test.

IsHiragana(const TText)

IMPORT_C TBoolIsHiragana(const TTextaUnicodeChar)[static]

Returns ETrue if aUnicodeChar is Hiragana. There are no Half-width Hiragana variants.

Parameters

const TText aUnicodeCharThe unicode character to test.

IsKanji(const TText)

IMPORT_C TBoolIsKanji(const TTextaUnicodeChar)[static]

Returns ETrue if aUnicodeChar is Kanji, or CJK ideographic All characters in the CJK ideographic range are Full-width.

Parameters

const TText aUnicodeCharThe unicode character to test.

IsKatakana(const TText)

IMPORT_C TBoolIsKatakana(const TTextaUnicodeChar)[static]

Returns ETrue if aUnicodeChar is Katakana. This includes both Full and Half-width Katakana.

Parameters

const TText aUnicodeCharThe unicode character to test.