#include <UnitStringLexer.h>

Public Member Functions

 CUnitStringLexer (const std::string &src)
 
void GetNextToken (SUnitStringToken &token)
 
void PeekNextToken (SUnitStringToken &token)
 

Protected Member Functions

void ScanNextToken ()
 

Private Member Functions

 CUnitStringLexer ()
 

Private Attributes

std::string source
 
SUnitStringToken curToken
 
bool scanNext
 
std::string::iterator end
 
std::string::iterator cursor
 

Constructor & Destructor Documentation

◆ CUnitStringLexer() [1/2]

CUnitStringLexer::CUnitStringLexer ( const std::string &  src)
inline

◆ CUnitStringLexer() [2/2]

CUnitStringLexer::CUnitStringLexer ( )
private

Member Function Documentation

◆ GetNextToken()

void CUnitStringLexer::GetNextToken ( SUnitStringToken token)
inline

◆ PeekNextToken()

void CUnitStringLexer::PeekNextToken ( SUnitStringToken token)
inline

◆ ScanNextToken()

void CUnitStringLexer::ScanNextToken ( )
protected

Member Data Documentation

◆ cursor

std::string::iterator CUnitStringLexer::cursor
private

◆ curToken

SUnitStringToken CUnitStringLexer::curToken
private

◆ end

std::string::iterator CUnitStringLexer::end
private

◆ scanNext

bool CUnitStringLexer::scanNext
private

◆ source

std::string CUnitStringLexer::source
private