#include <app/vutil.h>
class CVersitUnicodeUtils : public CBase |
Public Member Functions | |
---|---|
~CVersitUnicodeUtils() | |
TUint | AutoDetectCharSetL(const TDesC8 &, const CArrayFix< CCnvCharacterSetConverter::SCharacterSet > *) |
CCnvCharacterSetConverter & | CharacterSetConverter() |
TUint | ConvertStandardNameL(const TDesC8 &) |
IMPORT_C void | CreateConverterL() |
IMPORT_C HBufC8 * | NarrowL(const TDesC &) |
IMPORT_C HBufC8 * | NarrowLC(const TDesC &) |
CCnvCharacterSetConverter::TAvailability | SetCurrentCharSetL(TUint) |
HBufC8 * | StandardNameL(TUint) |
IMPORT_C HBufC * | WidenL(const TDesC8 &) |
IMPORT_C HBufC * | WidenLC(const TDesC8 &) |
Versit Unicode utilities class.
This enables conversion between Unicode and ISO character sets.
IMPORT_C | ~CVersitUnicodeUtils | ( | ) |
Frees all resources owned by the object, prior to its destruction.
TUint | AutoDetectCharSetL | ( | const TDesC8 & | aSample, |
const CArrayFix< CCnvCharacterSetConverter::SCharacterSet > * | aAutoDetectCharSets | |||
) |
CCnvCharacterSetConverter & | CharacterSetConverter | ( | ) | const [inline] |
Returns the character set converter created in CreateConverterL().
Returns: A character set converter.
Returns the Symbian OS UID for a character set from its Internet-standard name.
Parameter | Description |
---|---|
aStandardNameOfCharacterSet | Internet-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.
IMPORT_C void | CreateConverterL | ( | ) |
Creates a converter for converting between Unicode and Code Page 1252.
Any unconvertible Unicode characters are converted into question marks.
CCnvCharacterSetConverter::TAvailability | SetCurrentCharSetL | ( | TUint | aCharacterSet | ) |
Returns the Internet-standard name of a character set, from its Symbian OS UID.
Parameter | Description |
---|---|
aCharSetId | The 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.