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 & aStringinput.

IsPostfixOf(const TDesC &, const TDesC &)

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

Checks if string is postfix of another.

Parameters

const TDesC & aStringoriginal 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 & aStringoriginal string.
const TDesC & aPrefixpossibly 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 & aStringstring to be parsed.
CPhoneGsmParserResult & aResultIt will contain result.
CPhoneGsmOptionContainerBase & aOptionsIt contains all options related to parsing.