CPhoneGsmParserBase Class Reference

class CPhoneGsmParserBase : public CBase

It is base class for parsers.

Since
1.0 phoneparser.lib

Inherits from

Member Functions Documentation

ExtractNumber(const TDesC &)

TPtrC ExtractNumber ( const TDesC & aString ) [static]

Extracts sequence of digits.

Parameters

const TDesC & aString input.

IsPostfixOf(const TDesC &, const TDesC &)

TBool IsPostfixOf ( const TDesC & aString,
const TDesC & aPostfix
) [static]

Checks if string is postfix of another.

Parameters

const TDesC & aString original string.
const TDesC & aPostfix

IsPrefixOf(const TDesC &, const TDesC &)

TBool IsPrefixOf ( const TDesC & aString,
const TDesC & aPrefix
) [static]

Checks if string is prefix of another.

Parameters

const TDesC & aString original string.
const TDesC & aPrefix possibly prefix of aString.

ParseL(const TDesC &, CPhoneGsmParserResult &, CPhoneGsmOptionContainerBase &)

TBool ParseL ( const TDesC & aString,
CPhoneGsmParserResult & aResult,
CPhoneGsmOptionContainerBase & aOptions
) [pure virtual]

Parses string.

String must not contain other characters than from set { 0..9, *, #, +, p, w }. If method leaves, then result may contain something that is not valid.

Parameters

const TDesC & aString string to be parsed.
CPhoneGsmParserResult & aResult It will contain result.
CPhoneGsmOptionContainerBase & aOptions It contains all options related to parsing.