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 440 of file libeval_compiler.h.

Member Function Documentation

◆ Clear()

void LIBEVAL::TOKENIZER::Clear ( )
inline

Definition at line 449 of file libeval_compiler.h.

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

◆ Done()

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

Definition at line 463 of file libeval_compiler.h.

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

◆ GetChar()

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

Definition at line 455 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 222 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 204 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 236 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 443 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 487 of file libeval_compiler.h.

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

◆ m_str

wxString LIBEVAL::TOKENIZER::m_str
private

Definition at line 486 of file libeval_compiler.h.

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


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