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()

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().

A character set converter.

ConvertStandardNameL(const TDesC8 &)

TUint ConvertStandardNameL(const TDesC8 &aStandardNameOfCharacterSet)[inline]

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

The Symbian OS UID of the specified character set. If the name is not known, zero is returned.

Parameters

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

CreateConverterL()

IMPORT_C voidCreateConverterL()

NarrowL(const TDesC &)

IMPORT_C HBufC8 *NarrowL(const TDesC &aDesC)

Parameters

const TDesC & aDesC

NarrowLC(const TDesC &)

IMPORT_C HBufC8 *NarrowLC(const TDesC &aDesC)

Parameters

const TDesC & aDesC

SetCurrentCharSetL(TUint)

CCnvCharacterSetConverter::TAvailability SetCurrentCharSetL(TUintaCharacterSet)

Parameters

TUint aCharacterSet

StandardNameL(TUint)

HBufC8 *StandardNameL(TUintaCharSetId)[inline]

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

The Internet-standard name or MIME name of the specified character set, or NULL if the UID is not known. The name is encoded in 8-bit ASCII.

Parameters

TUint aCharSetIdThe Symbian OS UID of a character set.

WidenL(const TDesC8 &)

IMPORT_C HBufC *WidenL(const TDesC8 &aDesC8)

Parameters

const TDesC8 & aDesC8

WidenLC(const TDesC8 &)

IMPORT_C HBufC *WidenLC(const TDesC8 &aDesC8)

Parameters

const TDesC8 & aDesC8

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]