| 120 | } |
| 121 | |
| 122 | bool ConsumePrefix(LiteString* s, LiteString expected) { |
| 123 | if (s->starts_with(expected)) { |
| 124 | s->remove_prefix(expected.size()); |
| 125 | return true; |
| 126 | } |
| 127 | return false; |
| 128 | } |
| 129 | |
| 130 | bool ConsumeSuffix(LiteString* s, LiteString expected) { |
| 131 | if (s->ends_with(expected)) { |
nothing calls this directly
no test coverage detected