| 77 | } |
| 78 | |
| 79 | std::string_view TextParser::substr(size_t from, size_t to) const { |
| 80 | SC_ASSERT(to >= from && from <= _str.size() && to <= _str.size()); |
| 81 | return std::string_view(_str.data() + from, to - from); |
| 82 | } |
| 83 | |
| 84 | bool TextParser::tryParse(char c) { |
| 85 | return tryParsePredicate([&](auto currentCharacter) { return currentCharacter == c; }); |
no test coverage detected