| 12 | namespace spanparsing { |
| 13 | |
| 14 | bool Const(const std::string& str, Span<const char>& sp) |
| 15 | { |
| 16 | if ((size_t)sp.size() >= str.size() && std::equal(str.begin(), str.end(), sp.begin())) { |
| 17 | sp = sp.subspan(str.size()); |
| 18 | return true; |
| 19 | } |
| 20 | return false; |
| 21 | } |
| 22 | |
| 23 | bool Func(const std::string& str, Span<const char>& sp) |
| 24 | { |