class VersitUtils |
A utility class which provides functions for handling character set conversions, and for the parsing of character strings.
Private Member Functions | |
---|---|
void | AddEscapedString(TBool, TDes &, const TDesC &) |
const TDesC & | EscapeChar(TBool) |
IMPORT_C void | AddEscapedString | ( | TDes & | aDestination, |
const TDesC & | aTextToEscape, | |||
Versit::TVersitCharSet | aCharSet | |||
) | [static] |
TDes & aDestination | |
const TDesC & aTextToEscape | |
Versit::TVersitCharSet aCharSet |
IMPORT_C void | AddEscapedString | ( | TDes & | aDestination, |
const TDesC & | aTextToEscape, | |||
TUint | aCharSetId | |||
) | [static] |
void | AddEscapedString | ( | TBool | aIsShiftJis, |
TDes & | aDestination, | |||
const TDesC & | aTextToEscape | |||
) | [private, static] |
IMPORT_C CParserPropertyValue * | AdditionalPropertyValueFromStorageL | ( | const CParserProperty & | aProperty | ) | [static] |
const CParserProperty & aProperty |
IMPORT_C void | AllocateAdditionalPropertyStorageL | ( | CVersitTlsData & | aTlsData, |
CParserProperty & | aProperty, | |||
TPtr16 & | aStringValue, | |||
TUint | aLineCharacterSetId | |||
) | [static] |
CVersitTlsData & aTlsData | |
CParserProperty & aProperty | |
TPtr16 & aStringValue | |
TUint aLineCharacterSetId |
IMPORT_C TUid | CharConvCharSetUid | ( | Versit::TVersitCharSet | aVersitSet | ) | [static] |
Versit::TVersitCharSet aVersitSet |
Versit::TVersitCharSet | CharSet | ( | TUint | aCharConvCharSetUid | ) | [static] |
TUint aCharConvCharSetUid |
IMPORT_C TBool | CheckAndIgnoreCustomErrorL | ( | TInt | aError | ) | [static] |
TInt aError |
IMPORT_C void | ConArcEncodeL | ( | RReadStream & | aSource, |
CBufBase & | aTarget, | |||
TUid | aConArcEncodingUid | |||
) | [static] |
RReadStream & aSource | |
CBufBase & aTarget | |
TUid aConArcEncodingUid |
IMPORT_C TUid | ConArcEncodingUid | ( | Versit::TVersitEncoding | aEncoding | ) | [static] |
Versit::TVersitEncoding aEncoding |
IMPORT_C TBool | DescriptorContainsOnlySevenBitCharacters | ( | const TDesC & | aText | ) | [static] |
const TDesC & aText |
IMPORT_C TBool | EightBitEncoding | ( | Versit::TVersitCharSet | aCharSet | ) | [static] |
Versit::TVersitCharSet aCharSet |
IMPORT_C TBool | EightBitEncoding | ( | TUint | aCharSetId | ) | [static] |
TUint aCharSetId |
const TDesC & | EscapeChar | ( | TBool | aIsShiftJis | ) | [private, static] |
TBool aIsShiftJis |
IMPORT_C void | FreeAdditionalPropertyStorageL | ( | const CParserProperty & | aProperty | ) | [static] |
const CParserProperty & aProperty |
IMPORT_C const TDesC8 & | IANACharacterSetName | ( | Versit::TVersitCharSet | aCharSet | ) | [static] |
Versit::TVersitCharSet aCharSet |
IMPORT_C const TDesC8 & | IANAEncodingName | ( | Versit::TVersitEncoding | aEncoding | ) | [static] |
Versit::TVersitEncoding aEncoding |
TBool | IsBeginOrEnd | ( | TUid | aUid | ) | [static, inline] |
Tests whether the specified UID is the Versit Begin or End UID (KVersitTokenBeginUid or KVersitTokenEndUid).
ETrue if the UID is the Begin or End UID, otherwise EFalse.
TUid aUid | The UID to test. |
IMPORT_C TBool | IsNoneWhiteSpaceChar | ( | const TDesC8 & | aString | ) | [static] |
const TDesC8 & aString |
IMPORT_C TBool | IsNoneWhiteSpaceWideChar | ( | const TDesC16 & | aString | ) | [static] |
const TDesC16 & aString |
TBool | IsWhiteSpace | ( | TUint | aChar | ) | [static, inline] |
Tests whether the specified character is white space (either a tab or a space character).
ETrue if the character is white space, otherwise EFalse.
TUint aChar | The character to test. |
IMPORT_C CDesCArray * | ParseForArrayPropertiesL | ( | TPtr16 | aStringValue, |
TUint | aLineCharacterSetId | |||
) | [static] |
IMPORT_C void | RemoveEscapeChars | ( | TPtr8 & | aText | ) | [static] |
TPtr8 & aText |
IMPORT_C void | RemoveEscapeChars | ( | HBufC16 & | aText | ) | [static] |
HBufC16 & aText |
IMPORT_C void | RemoveEscapeChars | ( | HBufC16 & | aText, |
TUint | aCharSetUid | |||
) | [static] |
IMPORT_C void | RemoveEscapeChars | ( | TPtr16 & | aText, |
TUint | aCharSetUid | |||
) | [static] |
IMPORT_C TBool | RequiresEncoding | ( | const TDesC & | aText | ) | [static] |
const TDesC & aText |
IMPORT_C void | StripWhiteSpace | ( | TPtr8 & | aString | ) | [static] |
TPtr8 & aString |
IMPORT_C void | StripWhiteSpace | ( | TPtr16 & | aString | ) | [static] |
TPtr16 & aString |
IMPORT_C void | UncodeToNarrowL | ( | const TDesC & | aUnicode, |
TDes8 & | aNarrow, | |||
const Versit::TEncodingAndCharset & | aEncodingCharset | |||
) | [static] |
const TDesC & aUnicode | |
TDes8 & aNarrow | |
const Versit::TEncodingAndCharset & aEncodingCharset |