CVersitUnicodeUtils Class Reference

#include <app/vutil.h>

Link against: versit.lib

class CVersitUnicodeUtils : public CBase

Inherits from

  • CVersitUnicodeUtils

    Detailed Description

    Versit Unicode utilities class.

    This enables conversion between Unicode and ISO character sets.

    Constructor & Destructor Documentation

    ~CVersitUnicodeUtils ( )

    IMPORT_C~CVersitUnicodeUtils()

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

    Member Function Documentation

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

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

    CharacterSetConverter ( )

    CCnvCharacterSetConverter &CharacterSetConverter()const [inline]

    Returns the character set converter created in CreateConverterL().

    Returns: 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.

    ParameterDescription
    aStandardNameOfCharacterSetInternet-standard name of a character set encoded in 8-bit ASCII.

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

    CreateConverterL ( )

    IMPORT_C voidCreateConverterL()

    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.

    ParameterDescription
    aDesCThe Unicode string to be converted.

    Returns: A pointer to a Code Page 1252 string. The caller takes ownership.

    NarrowLC ( const TDesC & )

    IMPORT_C HBufC8 *NarrowLC(const TDesC &aDesC)

    Converts a string from Unicode to Code Page 1252.

    ParameterDescription
    aDesCThe Unicode string to be converted.

    Returns: A pointer to a Code Page 1252 string. The pointer is left on the cleanup stack. The caller takes ownership.

    SetCurrentCharSetL ( TUint )

    CCnvCharacterSetConverter::TAvailability SetCurrentCharSetL(TUintaCharacterSet)

    StandardNameL ( TUint )

    HBufC8 *StandardNameL(TUintaCharSetId)[inline]

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

    ParameterDescription
    aCharSetIdThe Symbian OS UID of a character set.

    Returns: 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.

    WidenL ( const TDesC8 & )

    IMPORT_C HBufC *WidenL(const TDesC8 &aDesC8)

    Converts a string from Code Page 1252 into Unicode.

    ParameterDescription
    aDesC8The Code Page 1252 string to be converted.

    Returns: Pointer to the string converted into Unicode. The caller takes ownership.

    WidenLC ( const TDesC8 & )

    IMPORT_C HBufC *WidenLC(const TDesC8 &aDesC8)

    Converts a string from Code Page 1252 into Unicode.

    ParameterDescription
    aDesC8The Code Page 1252 string to be converted.

    Returns: Pointer to the string converted into Unicode. The pointer is left on the cleanup stack. The caller takes ownership.