| 61 | } |
| 62 | |
| 63 | bool TextReader::CheckNext1(int ch) { |
| 64 | if (_currentIndex < _text.size() && _text[_currentIndex] == ch) { |
| 65 | SaveAndNext(); |
| 66 | return true; |
| 67 | } |
| 68 | return false; |
| 69 | } |
| 70 | |
| 71 | bool TextReader::CheckNext2(std::string_view set) { |
| 72 | if (set.size() != 2) { |
no test coverage detected