TGsmuLex8 Class Reference

class TGsmuLex8 : public TLex8

Thin wrapper over TLex8 to provide leaving functions when getting the next character(s).

These functions leave with KErrGsmuDecoding if there are insufficient characters remaining.

Inherits from

Public Member Functions
TGsmuLex8(const TDesC8 &)
TUint8 GetL()
voidIncL(TInt)
TPtrC8 NextAndIncL(TInt)
TPtrC8 NextWithNoIncL(TInt)
TPtrC8 NextWithNoIncL(TInt, TBool)
Private Member Functions
voidLeaveL()
Inherited Functions
TLex8::Assign(const TDesC8 &)
TLex8::Assign(const TLex8 &)
TLex8::Assign(const TUint8 *)
TLex8::BoundedVal(TInt32 &,TInt)
TLex8::BoundedVal(TInt64 &,TRadix,const TInt64 &)
TLex8::BoundedVal(TInt64 &,const TInt64 &)
TLex8::BoundedVal(TUint32 &,TRadix,TUint)
TLex8::Eos()const
TLex8::Get()
TLex8::Inc()
TLex8::Inc(TInt)
TLex8::Mark()
TLex8::Mark(TLexMark8 &)const
TLex8::MarkedOffset()const
TLex8::MarkedOffset(const TLexMark8)const
TLex8::MarkedToken()const
TLex8::MarkedToken(const TLexMark8)const
TLex8::NextToken()
TLex8::Offset()const
TLex8::Peek()const
TLex8::Remainder()const
TLex8::RemainderFromMark()const
TLex8::RemainderFromMark(const TLexMark8)const
TLex8::SkipAndMark(TInt)
TLex8::SkipAndMark(TInt,TLexMark8 &)
TLex8::SkipCharacters()
TLex8::SkipSpace()
TLex8::SkipSpaceAndMark()
TLex8::SkipSpaceAndMark(TLexMark8 &)
TLex8::TLex8()
TLex8::TLex8(const TDesC8 &)
TLex8::TLex8(const TUint8 *)
TLex8::TokenLength()const
TLex8::TokenLength(const TLexMark8)const
TLex8::UnGet()
TLex8::UnGetToMark()
TLex8::UnGetToMark(const TLexMark8)
TLex8::Val(TInt &)
TLex8::Val(TInt16 &)
TLex8::Val(TInt32 &)
TLex8::Val(TInt32 &,TInt)
TLex8::Val(TInt64 &)
TLex8::Val(TInt64 &,TRadix)
TLex8::Val(TInt64 &,TRadix,const TInt64 &)
TLex8::Val(TInt64 &,const TInt64 &)
TLex8::Val(TInt8 &)
TLex8::Val(TReal32 &)
TLex8::Val(TReal32 &,TChar)
TLex8::Val(TReal64 &)
TLex8::Val(TReal64 &,TChar)
TLex8::Val(TRealX &)
TLex8::Val(TRealX &,TChar)
TLex8::Val(TUint &,TRadix)
TLex8::Val(TUint16 &,TRadix)
TLex8::Val(TUint32 &,TRadix)
TLex8::Val(TUint32 &,TRadix,TUint)
TLex8::Val(TUint8 &,TRadix)
TLex8::operator=(const TDesC8 &)
TLex8::operator=(const TUint8 *)

Constructor & Destructor Documentation

TGsmuLex8(const TDesC8 &)

TGsmuLex8(const TDesC8 &aSource)

Constructs the object with a descriptor. The extraction mark and next character members are initialised to point to the start of the string.

Parameters

const TDesC8 & aSourceDescriptor to be assigned by reference

Member Functions Documentation

GetL()

TUint8 GetL()

Gets the next character in the string and increments the next character position.

leave
Leaves with KErrGsmuDecoding if at end of string

IncL(TInt)

voidIncL(TIntaNumber = 1)

Increments the next character position by aNumber

leave
If the increment puts the next character position before the start or beyond the end of the string, the function leaves with KErrGsmuDecoding.

Parameters

TInt aNumber = 1The number of characters to increment the next character position by.

LeaveL()

voidLeaveL()const [private, inline]

Leaves with KErrGsmuDecoding.

NextAndIncL(TInt)

TPtrC8 NextAndIncL(TIntaLength)

Parameters

TInt aLength

NextWithNoIncL(TInt)

TPtrC8 NextWithNoIncL(TIntaLength)const

Checks there are enough remaining characters, then returns a TPtrC containing the next aLength characters. Does not increment the current position.

leave
Leaves with KErrGsmuDecoding if there are insufficient characters remaining

Parameters

TInt aLengthNumber of characters to return

NextWithNoIncL(TInt, TBool)

TPtrC8 NextWithNoIncL(TIntaLength,
TBoolaAcceptTruncation
)const

Parameters

TInt aLength
TBool aAcceptTruncation