Lines Matching refs:StringLexer
17 StringLexer::StringLexer(std::string s) : m_data(std::move(s)), m_position(0) {} in StringLexer() function in StringLexer
19 StringLexer::Character StringLexer::Peek() { return m_data[m_position]; } in Peek()
21 bool StringLexer::NextIf(Character c) { in NextIf()
30 std::pair<bool, StringLexer::Character>
31 StringLexer::NextIf(std::initializer_list<Character> cs) { in NextIf()
42 bool StringLexer::AdvanceIf(const std::string &token) { in AdvanceIf()
58 StringLexer::Character StringLexer::Next() { in Next()
64 bool StringLexer::HasAtLeast(Size s) { in HasAtLeast()
68 void StringLexer::PutBack(Size s) { in PutBack()
73 std::string StringLexer::GetUnlexed() { in GetUnlexed()
77 void StringLexer::Consume() { m_position++; } in Consume()
79 StringLexer &StringLexer::operator=(const StringLexer &rhs) { in operator =()