class EscapeUtils |
Comments : Provides an API to allow data to be escape encoded and decoded. Also provide an API for converting a UNICODE data (16-bit descriptor) into UTF8 data (8-bit descriptor) and vice-verse. 6.0
Public Member Functions | |
---|---|
IMPORT_C HBufC8 * | ConvertFromUnicodeToUtf8L(const TDesC &) |
IMPORT_C HBufC * | ConvertToUnicodeFromUtf8L(const TDesC8 &) |
IMPORT_C HBufC8 * | EscapeDecodeL(const TDesC8 &) |
IMPORT_C HBufC16 * | EscapeDecodeL(const TDesC16 &) |
IMPORT_C HBufC8 * | EscapeEncodeL(const TDesC8 &, TEscapeMode) |
IMPORT_C HBufC16 * | EscapeEncodeL(const TDesC16 &, TEscapeMode) |
IMPORT_C HBufC8 * | EscapeEncodeL(const TDesC8 &, const TDesC8 &) |
IMPORT_C HBufC16 * | EscapeEncodeL(const TDesC16 &, const TDesC16 &) |
IMPORT_C TBool | IsEscapeTriple(const TDesC8 &, TInt &) |
IMPORT_C TBool | IsEscapeTriple(const TDesC16 &, TInt &) |
IMPORT_C TBool | IsExcludedChar(TChar) |
HBufC8 * | ReEscapeEncodeL(const TDesC8 &) |
IMPORT_C HBufC8 * | SpecificEscapeEncodeL(const TDesC8 &, const TDesC8 &) |
Private Member Functions | |
---|---|
IMPORT_C HBufC8 * | DummyForwardingFunctionForCompatibility(const TDesC8 &, const TDesC8 &) |
Public Member Enumerations | |
---|---|
enum | TEscapeMode { EEscapeNormal = 0, EEscapeQuery, EEscapePath, EEscapeAuth, EEscapeUrlEncoded } |
IMPORT_C HBufC8 * | ConvertFromUnicodeToUtf8L | ( | const TDesC & | aData | ) | [static] |
const TDesC & aData |
IMPORT_C HBufC * | ConvertToUnicodeFromUtf8L | ( | const TDesC8 & | aData | ) | [static] |
const TDesC8 & aData |
IMPORT_C HBufC8 * | DummyForwardingFunctionForCompatibility | ( | const TDesC8 & | aData, |
const TDesC8 & | aCharsToEscape | |||
) | [private, static] |
IMPORT_C HBufC8 * | EscapeDecodeL | ( | const TDesC8 & | aData | ) | [static] |
const TDesC8 & aData |
IMPORT_C HBufC16 * | EscapeDecodeL | ( | const TDesC16 & | aData | ) | [static] |
const TDesC16 & aData |
IMPORT_C HBufC8 * | EscapeEncodeL | ( | const TDesC8 & | aData, |
TEscapeMode | aMode | |||
) | [static] |
const TDesC8 & aData | |
TEscapeMode aMode |
IMPORT_C HBufC16 * | EscapeEncodeL | ( | const TDesC16 & | aData, |
TEscapeMode | aMode | |||
) | [static] |
const TDesC16 & aData | |
TEscapeMode aMode |
IMPORT_C HBufC8 * | EscapeEncodeL | ( | const TDesC8 & | aData, |
const TDesC8 & | aReservedChars | |||
) | [static] |
IMPORT_C HBufC16 * | EscapeEncodeL | ( | const TDesC16 & | aData, |
const TDesC16 & | aReservedChars | |||
) | [static] |
IMPORT_C TBool | IsEscapeTriple | ( | const TDesC8 & | aData, |
TInt & | aHexValue | |||
) | [static] |
IMPORT_C TBool | IsEscapeTriple | ( | const TDesC16 & | aData, |
TInt & | aHexValue | |||
) | [static] |
HBufC8 * | ReEscapeEncodeL | ( | const TDesC8 & | aData | ) | [static] |
const TDesC8 & aData |
IMPORT_C HBufC8 * | SpecificEscapeEncodeL | ( | const TDesC8 & | aData, |
const TDesC8 & | aCharsToEscape | |||
) | [static] |
enum TEscapeMode Enum defining escaping modes. Each mode has a different set of reserved characters. These are based on various uri components, as decribed in RFC2396.
EEscapeNormal = 0 |
Default mode, which has no reserved characters |
EEscapeQuery |
Mode specifying reserved characters in a uri query - ;/?:&=+$,[] |
EEscapePath |
Mode specifying reserved characters in a uri path - /;=?[] |
EEscapeAuth |
Mode specifying reserved characters in a uri authority - /;:@?[] |
EEscapeUrlEncoded |
Mode specifying reserved characters in a URL ;/?:&=+$[]!\'()~ |