MAiStrParser Class Reference

class MAiStrParser

It is the interface for handling string parsing.

Since
S60 3.2
Public Member Functions
HBufC16 *CopyToBufferL(HBufC16 *, const TDesC16 &)
HBufC16 *CopyToBufferL(HBufC16 *, const TDesC8 &)
HBufC8 *CopyToBufferL(HBufC8 *, const TDesC8 &)
HBufC8 *CopyToBufferL(HBufC8 *, const TDesC16 &)
TInt ParseInt(TInt32 &, const TDesC8 &)
voidRelease()
Protected Member Functions
~MAiStrParser()

Constructor & Destructor Documentation

~MAiStrParser()

~MAiStrParser()[protected, inline]

Member Functions Documentation

CopyToBufferL(HBufC16 *, const TDesC16 &)

HBufC16 *CopyToBufferL(HBufC16 *aBuffer,
const TDesC16 &aText
)[pure virtual]

Copies aText to aBuffer.

Parameters

HBufC16 * aBuffera buffer to hold text. If aBuffer is NULL or insufficient, the function allocates a buffer.
const TDesC16 & aTextthe text to copy.

CopyToBufferL(HBufC16 *, const TDesC8 &)

HBufC16 *CopyToBufferL(HBufC16 *aBuffer,
const TDesC8 &aText
)[pure virtual]

Copies and converts aText to aBuffer. UTF-8 to UCS-2 conversion is applied to aText.

Parameters

HBufC16 * aBuffera buffer to hold text. If aBuffer is NULL or insufficient, the function allocates a buffer.
const TDesC8 & aTextthe text to copy.

CopyToBufferL(HBufC8 *, const TDesC8 &)

HBufC8 *CopyToBufferL(HBufC8 *aBuffer,
const TDesC8 &aText
)[pure virtual]

Copies aText to aBuffer.

Parameters

HBufC8 * aBuffera buffer to hold text. If aBuffer is NULL or insufficient, the function allocates a buffer.
const TDesC8 & aTextthe text to copy.

CopyToBufferL(HBufC8 *, const TDesC16 &)

HBufC8 *CopyToBufferL(HBufC8 *aBuffer,
const TDesC16 &aText
)[pure virtual]

Copies and converts aText to aBuffer. UCS-2 to UTF-8 conversion is applied to aText.

Parameters

HBufC8 * aBuffera buffer to hold text. If aBuffer is NULL or insufficient, the function allocates a buffer.
const TDesC16 & aTextthe text to copy.

ParseInt(TInt32 &, const TDesC8 &)

TInt ParseInt(TInt32 &aValue,
const TDesC8 &aStringValue
)[pure virtual]

Parses an integer value from string. The string may contain the integer value either in hexadecimal or decimal format.

Parameters

TInt32 & aValuethe result integer value
const TDesC8 & aStringValuethe source string

Release()

voidRelease()[pure virtual]

Release the parser