VersitUtils Class Reference

class VersitUtils

A utility class which provides functions for handling character set conversions, and for the parsing of character strings.

Public Member Functions
IMPORT_C voidAddEscapedString(TDes &, const TDesC &, Versit::TVersitCharSet)
IMPORT_C voidAddEscapedString(TDes &, const TDesC &, TUint)
IMPORT_C CParserPropertyValue *AdditionalPropertyValueFromStorageL(const CParserProperty &)
IMPORT_C voidAllocateAdditionalPropertyStorageL(CVersitTlsData &, CParserProperty &, TPtr16 &, TUint)
IMPORT_C TUidCharConvCharSetUid(Versit::TVersitCharSet)
Versit::TVersitCharSet CharSet(TUint)
IMPORT_C TBoolCheckAndIgnoreCustomErrorL(TInt)
IMPORT_C voidConArcEncodeL(RReadStream &, CBufBase &, TUid)
IMPORT_C TUidConArcEncodingUid(Versit::TVersitEncoding)
IMPORT_C TBoolDescriptorContainsOnlySevenBitCharacters(const TDesC &)
IMPORT_C TBoolEightBitEncoding(Versit::TVersitCharSet)
IMPORT_C TBoolEightBitEncoding(TUint)
IMPORT_C voidFreeAdditionalPropertyStorageL(const CParserProperty &)
IMPORT_C const TDesC8 &IANACharacterSetName(Versit::TVersitCharSet)
IMPORT_C const TDesC8 &IANAEncodingName(Versit::TVersitEncoding)
TBool IsBeginOrEnd(TUid)
IMPORT_C TBoolIsNoneWhiteSpaceChar(const TDesC8 &)
IMPORT_C TBoolIsNoneWhiteSpaceWideChar(const TDesC16 &)
TBool IsWhiteSpace(TUint)
IMPORT_C CDesCArray *ParseForArrayPropertiesL(TPtr16, TUint)
IMPORT_C voidRemoveEscapeChars(TPtr8 &)
IMPORT_C voidRemoveEscapeChars(HBufC16 &)
IMPORT_C voidRemoveEscapeChars(HBufC16 &, TUint)
IMPORT_C voidRemoveEscapeChars(TPtr16 &, TUint)
IMPORT_C TBoolRequiresEncoding(const TDesC &)
IMPORT_C voidStripWhiteSpace(TPtr8 &)
IMPORT_C voidStripWhiteSpace(TPtr16 &)
IMPORT_C voidUncodeToNarrowL(const TDesC &, TDes8 &, const Versit::TEncodingAndCharset &)
IMPORT_C voidWrapLinesL(CBufBase &, TInt)
Private Member Functions
voidAddEscapedString(TBool, TDes &, const TDesC &)
const TDesC &EscapeChar(TBool)

Member Functions Documentation

AddEscapedString(TDes &, const TDesC &, Versit::TVersitCharSet)

IMPORT_C voidAddEscapedString(TDes &aDestination,
const TDesC &aTextToEscape,
Versit::TVersitCharSetaCharSet
)[static]

Parameters

TDes & aDestination
const TDesC & aTextToEscape
Versit::TVersitCharSet aCharSet

AddEscapedString(TDes &, const TDesC &, TUint)

IMPORT_C voidAddEscapedString(TDes &aDestination,
const TDesC &aTextToEscape,
TUintaCharSetId
)[static]

Parameters

TDes & aDestination
const TDesC & aTextToEscape
TUint aCharSetId

AddEscapedString(TBool, TDes &, const TDesC &)

voidAddEscapedString(TBoolaIsShiftJis,
TDes &aDestination,
const TDesC &aTextToEscape
)[private, static]

Parameters

TBool aIsShiftJis
TDes & aDestination
const TDesC & aTextToEscape

AdditionalPropertyValueFromStorageL(const CParserProperty &)

IMPORT_C CParserPropertyValue *AdditionalPropertyValueFromStorageL(const CParserProperty &aProperty)[static]

Parameters

const CParserProperty & aProperty

AllocateAdditionalPropertyStorageL(CVersitTlsData &, CParserProperty &, TPtr16 &, TUint)

IMPORT_C voidAllocateAdditionalPropertyStorageL(CVersitTlsData &aTlsData,
CParserProperty &aProperty,
TPtr16 &aStringValue,
TUintaLineCharacterSetId
)[static]

Parameters

CVersitTlsData & aTlsData
CParserProperty & aProperty
TPtr16 & aStringValue
TUint aLineCharacterSetId

CharConvCharSetUid(Versit::TVersitCharSet)

IMPORT_C TUidCharConvCharSetUid(Versit::TVersitCharSetaVersitSet)[static]

Parameters

Versit::TVersitCharSet aVersitSet

CharSet(TUint)

Versit::TVersitCharSet CharSet(TUintaCharConvCharSetUid)[static]

Parameters

TUint aCharConvCharSetUid

CheckAndIgnoreCustomErrorL(TInt)

IMPORT_C TBoolCheckAndIgnoreCustomErrorL(TIntaError)[static]

Parameters

TInt aError

ConArcEncodeL(RReadStream &, CBufBase &, TUid)

IMPORT_C voidConArcEncodeL(RReadStream &aSource,
CBufBase &aTarget,
TUidaConArcEncodingUid
)[static]

Parameters

RReadStream & aSource
CBufBase & aTarget
TUid aConArcEncodingUid

ConArcEncodingUid(Versit::TVersitEncoding)

IMPORT_C TUidConArcEncodingUid(Versit::TVersitEncodingaEncoding)[static]

Parameters

Versit::TVersitEncoding aEncoding

DescriptorContainsOnlySevenBitCharacters(const TDesC &)

IMPORT_C TBoolDescriptorContainsOnlySevenBitCharacters(const TDesC &aText)[static]

Parameters

const TDesC & aText

EightBitEncoding(Versit::TVersitCharSet)

IMPORT_C TBoolEightBitEncoding(Versit::TVersitCharSetaCharSet)[static]

Parameters

Versit::TVersitCharSet aCharSet

EightBitEncoding(TUint)

IMPORT_C TBoolEightBitEncoding(TUintaCharSetId)[static]

Parameters

TUint aCharSetId

EscapeChar(TBool)

const TDesC &EscapeChar(TBoolaIsShiftJis)[private, static]

Parameters

TBool aIsShiftJis

FreeAdditionalPropertyStorageL(const CParserProperty &)

IMPORT_C voidFreeAdditionalPropertyStorageL(const CParserProperty &aProperty)[static]

Parameters

const CParserProperty & aProperty

IANACharacterSetName(Versit::TVersitCharSet)

IMPORT_C const TDesC8 &IANACharacterSetName(Versit::TVersitCharSetaCharSet)[static]

Parameters

Versit::TVersitCharSet aCharSet

IANAEncodingName(Versit::TVersitEncoding)

IMPORT_C const TDesC8 &IANAEncodingName(Versit::TVersitEncodingaEncoding)[static]

Parameters

Versit::TVersitEncoding aEncoding

IsBeginOrEnd(TUid)

TBool IsBeginOrEnd(TUidaUid)[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.

Parameters

TUid aUidThe UID to test.

IsNoneWhiteSpaceChar(const TDesC8 &)

IMPORT_C TBoolIsNoneWhiteSpaceChar(const TDesC8 &aString)[static]

Parameters

const TDesC8 & aString

IsNoneWhiteSpaceWideChar(const TDesC16 &)

IMPORT_C TBoolIsNoneWhiteSpaceWideChar(const TDesC16 &aString)[static]

Parameters

const TDesC16 & aString

IsWhiteSpace(TUint)

TBool IsWhiteSpace(TUintaChar)[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.

Parameters

TUint aCharThe character to test.

ParseForArrayPropertiesL(TPtr16, TUint)

IMPORT_C CDesCArray *ParseForArrayPropertiesL(TPtr16aStringValue,
TUintaLineCharacterSetId
)[static]

Parameters

TPtr16 aStringValue
TUint aLineCharacterSetId

RemoveEscapeChars(TPtr8 &)

IMPORT_C voidRemoveEscapeChars(TPtr8 &aText)[static]

Parameters

TPtr8 & aText

RemoveEscapeChars(HBufC16 &)

IMPORT_C voidRemoveEscapeChars(HBufC16 &aText)[static]

Parameters

HBufC16 & aText

RemoveEscapeChars(HBufC16 &, TUint)

IMPORT_C voidRemoveEscapeChars(HBufC16 &aText,
TUintaCharSetUid
)[static]

Parameters

HBufC16 & aText
TUint aCharSetUid

RemoveEscapeChars(TPtr16 &, TUint)

IMPORT_C voidRemoveEscapeChars(TPtr16 &aText,
TUintaCharSetUid
)[static]

Parameters

TPtr16 & aText
TUint aCharSetUid

RequiresEncoding(const TDesC &)

IMPORT_C TBoolRequiresEncoding(const TDesC &aText)[static]

Parameters

const TDesC & aText

StripWhiteSpace(TPtr8 &)

IMPORT_C voidStripWhiteSpace(TPtr8 &aString)[static]

Parameters

TPtr8 & aString

StripWhiteSpace(TPtr16 &)

IMPORT_C voidStripWhiteSpace(TPtr16 &aString)[static]

Parameters

TPtr16 & aString

UncodeToNarrowL(const TDesC &, TDes8 &, const Versit::TEncodingAndCharset &)

IMPORT_C voidUncodeToNarrowL(const TDesC &aUnicode,
TDes8 &aNarrow,
const Versit::TEncodingAndCharset &aEncodingCharset
)[static]

Parameters

const TDesC & aUnicode
TDes8 & aNarrow
const Versit::TEncodingAndCharset & aEncodingCharset

WrapLinesL(CBufBase &, TInt)

IMPORT_C voidWrapLinesL(CBufBase &aBuffer,
TIntaMaxLineLength
)[static]

Parameters

CBufBase & aBuffer
TInt aMaxLineLength