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

Member Functions Documentation

ConvertFullHiragnaToFullKatakana(const TDesC16 &, TDes16 &)

IMPORT_C TInt ConvertFullHiragnaToFullKatakana ( 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 & aUnicodeSource Descriptor that contains the text to be converted.
TDes16 & aUnicodeTarget The target descriptor for the converted text.

ConvertFullToHalfWidth(const TDesC16 &, TDes16 &)

IMPORT_C TInt ConvertFullToHalfWidth ( 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 & aUnicodeSource Descriptor that contains the text to be converted.
TDes16 & aUnicodeTarget The target descriptor for the converted text.

ConvertFullToHalfWidthKatakana(const TDesC16 &, TDes16 &)

IMPORT_C TInt ConvertFullToHalfWidthKatakana ( 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 & aUnicodeSource Descriptor that contains the text to be converted.
TDes16 & aUnicodeTarget The target descriptor for the converted text.

ConvertHalfToFullWidth(const TDesC16 &, TDes16 &)

IMPORT_C TInt ConvertHalfToFullWidth ( 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 & aUnicodeSource Descriptor that contains the text to be converted.
TDes16 & aUnicodeTarget The target descriptor for the converted text.

ConvertHalfToFullWidthKatakana(const TDesC16 &, TDes16 &)

IMPORT_C TInt ConvertHalfToFullWidthKatakana ( 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 & aUnicodeSource Descriptor that contains the text to be converted.
TDes16 & aUnicodeTarget The target descriptor for the converted text.

IsFullWidth(const TText)

IMPORT_C TBool IsFullWidth ( const TText aUnicodeChar ) [static]

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

Parameters

const TText aUnicodeChar The unicode character to test.

IsHalfWidth(const TText)

IMPORT_C TBool IsHalfWidth ( const TText aUnicodeChar ) [static]

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

Parameters

const TText aUnicodeChar The unicode character to test.

IsHiragana(const TText)

IMPORT_C TBool IsHiragana ( const TText aUnicodeChar ) [static]

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

Parameters

const TText aUnicodeChar The unicode character to test.

IsKanji(const TText)

IMPORT_C TBool IsKanji ( const TText aUnicodeChar ) [static]

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

Parameters

const TText aUnicodeChar The unicode character to test.

IsKatakana(const TText)

IMPORT_C TBool IsKatakana ( const TText aUnicodeChar ) [static]

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

Parameters

const TText aUnicodeChar The unicode character to test.