CVersitUnicodeUtils Class Reference

class CVersitUnicodeUtils : public CBase

Versit Unicode utilities class.

This enables conversion between Unicode and ISO character sets.

Inherits from

Constructor & Destructor Documentation

~CVersitUnicodeUtils()

IMPORT_C ~CVersitUnicodeUtils ( )

Frees all resources owned by the object, prior to its destruction.

Member Functions Documentation

AutoDetectCharSetL(const TDesC8 &, const CArrayFix< CCnvCharacterSetConverter::SCharacterSet > *)

TUint AutoDetectCharSetL ( const TDesC8 & aSample,
const CArrayFix < CCnvCharacterSetConverter::SCharacterSet > * aAutoDetectCharSets
)

Parameters

const TDesC8 & aSample
const CArrayFix < CCnvCharacterSetConverter::SCharacterSet > * aAutoDetectCharSets

CharacterSetConverter()

CCnvCharacterSetConverter & CharacterSetConverter ( ) const [inline]

Returns the character set converter created in CreateConverterL() .

ConvertStandardNameL(const TDesC8 &)

TUint ConvertStandardNameL ( const TDesC8 & aStandardNameOfCharacterSet ) [inline]

Returns the Symbian OS UID for a character set from its Internet-standard name.

Parameters

const TDesC8 & aStandardNameOfCharacterSet Internet-standard name of a character set encoded in 8-bit ASCII.

CreateConverterL()

IMPORT_C void CreateConverterL ( )

Creates a converter for converting between Unicode and Code Page 1252.

Any unconvertible Unicode characters are converted into question marks.

NarrowL(const TDesC &)

IMPORT_C HBufC8 * NarrowL ( const TDesC & aDesC )

Converts a string from Unicode to Code Page 1252.

Parameters

const TDesC & aDesC The Unicode string to be converted.

NarrowLC(const TDesC &)

IMPORT_C HBufC8 * NarrowLC ( const TDesC & aDesC )

Converts a string from Unicode to Code Page 1252.

Parameters

const TDesC & aDesC The Unicode string to be converted.

SetCurrentCharSetL(TUint)

CCnvCharacterSetConverter::TAvailability SetCurrentCharSetL ( TUint aCharacterSet )

Parameters

TUint aCharacterSet

StandardNameL(TUint)

HBufC8 * StandardNameL ( TUint aCharSetId ) [inline]

Returns the Internet-standard name of a character set, from its Symbian OS UID.

Parameters

TUint aCharSetId The Symbian OS UID of a character set.

WidenL(const TDesC8 &)

IMPORT_C HBufC * WidenL ( const TDesC8 & aDesC8 )

Converts a string from Code Page 1252 into Unicode.

Parameters

const TDesC8 & aDesC8 The Code Page 1252 string to be converted.

WidenLC(const TDesC8 &)

IMPORT_C HBufC * WidenLC ( const TDesC8 & aDesC8 )

Converts a string from Code Page 1252 into Unicode.

Parameters

const TDesC8 & aDesC8 The Code Page 1252 string to be converted.

Member Data Documentation

CArrayFix< CCnvCharacterSetConverter::SCharacterSet > * iCharSetsAvailable

CArrayFix < CCnvCharacterSetConverter::SCharacterSet > * iCharSetsAvailable [private]

TUint iCurrentConverterCharSet

TUint iCurrentConverterCharSet [private]

TBool iFsConnected

TBool iFsConnected [private]

RFs iFsSession

RFs iFsSession [private]

CCnvCharacterSetConverter * iUnicodeConverter

CCnvCharacterSetConverter * iUnicodeConverter [private]