| 128 | } |
| 129 | |
| 130 | bool ConsumeSuffix(LiteString* s, LiteString expected) { |
| 131 | if (s->ends_with(expected)) { |
| 132 | s->remove_suffix(expected.size()); |
| 133 | return true; |
| 134 | } |
| 135 | return false; |
| 136 | } |
| 137 | |
| 138 | bool StartWith(const std::string& s, const std::string& pattern) { |
| 139 | if (s.size() < pattern.size()) { |
nothing calls this directly
no test coverage detected