KiCad PCB EDA Suite
Loading...
Searching...
No Matches
LIBEVAL::TOKENIZER Class Reference

#include <libeval_compiler.h>

Public Member Functions

void Restart (const wxString &aStr)
 
void Clear ()
 
int GetChar () const
 
bool Done () const
 
void NextChar (int aAdvance=1)
 
size_t GetPos () const
 
wxString GetString ()
 
wxString GetChars (const std::function< bool(wxUniChar)> &cond) const
 
bool MatchAhead (const wxString &match, const std::function< bool(wxUniChar)> &stopCond) const
 

Private Attributes

wxString m_str
 
size_t m_pos = 0
 

Detailed Description

Definition at line 448 of file libeval_compiler.h.

Member Function Documentation

◆ Clear()

void LIBEVAL::TOKENIZER::Clear ( )
inline

Definition at line 457 of file libeval_compiler.h.

Referenced by LIBEVAL::COMPILER::Clear().

◆ Done()

bool LIBEVAL::TOKENIZER::Done ( ) const
inline

Definition at line 471 of file libeval_compiler.h.

Referenced by LIBEVAL::COMPILER::lexDefault().

◆ GetChar()

int LIBEVAL::TOKENIZER::GetChar ( ) const
inline

Definition at line 463 of file libeval_compiler.h.

Referenced by LIBEVAL::COMPILER::lexDefault().

◆ GetChars()

wxString LIBEVAL::TOKENIZER::GetChars ( const std::function< bool(wxUniChar)> &  cond) const

Definition at line 225 of file libeval_compiler.cpp.

References m_pos, and m_str.

Referenced by LIBEVAL::COMPILER::lexDefault().

◆ GetPos()

size_t LIBEVAL::TOKENIZER::GetPos ( ) const
inline

◆ GetString()

wxString LIBEVAL::TOKENIZER::GetString ( )

Definition at line 207 of file libeval_compiler.cpp.

References m_pos, and m_str.

Referenced by LIBEVAL::COMPILER::lexString().

◆ MatchAhead()

bool LIBEVAL::TOKENIZER::MatchAhead ( const wxString &  match,
const std::function< bool(wxUniChar)> &  stopCond 
) const

Definition at line 239 of file libeval_compiler.cpp.

References m_pos, and m_str.

Referenced by LIBEVAL::COMPILER::lexDefault(), and LIBEVAL::COMPILER::resolveUnits().

◆ NextChar()

void LIBEVAL::TOKENIZER::NextChar ( int  aAdvance = 1)
inline

◆ Restart()

void LIBEVAL::TOKENIZER::Restart ( const wxString &  aStr)
inline

Definition at line 451 of file libeval_compiler.h.

Referenced by LIBEVAL::COMPILER::newString().

Member Data Documentation

◆ m_pos

size_t LIBEVAL::TOKENIZER::m_pos = 0
private

Definition at line 495 of file libeval_compiler.h.

Referenced by GetChars(), GetString(), and MatchAhead().

◆ m_str

wxString LIBEVAL::TOKENIZER::m_str
private

Definition at line 494 of file libeval_compiler.h.

Referenced by GetChars(), GetString(), and MatchAhead().


The documentation for this class was generated from the following files: