Lines Matching refs:StringLexer
17 StringLexer::StringLexer(std::string s) : m_data(s), m_position(0) {} in StringLexer() function in StringLexer
19 StringLexer::StringLexer(const StringLexer &rhs) in StringLexer() function in StringLexer
22 StringLexer::Character StringLexer::Peek() { return m_data[m_position]; } in Peek()
24 bool StringLexer::NextIf(Character c) { in NextIf()
33 std::pair<bool, StringLexer::Character>
34 StringLexer::NextIf(std::initializer_list<Character> cs) { in NextIf()
45 bool StringLexer::AdvanceIf(const std::string &token) { in AdvanceIf()
61 StringLexer::Character StringLexer::Next() { in Next()
67 bool StringLexer::HasAtLeast(Size s) { in HasAtLeast()
71 void StringLexer::PutBack(Size s) { in PutBack()
76 std::string StringLexer::GetUnlexed() { in GetUnlexed()
80 void StringLexer::Consume() { m_position++; } in Consume()
82 StringLexer &StringLexer::operator=(const StringLexer &rhs) { in operator =()