| 86 | } |
| 87 | |
| 88 | bool tryRead(std::string_view Prefix, std::string_view &Name) { |
| 89 | if (Prefix.size() > Name.size()) |
| 90 | return false; |
| 91 | if (Prefix != Name.substr(0, Prefix.size())) |
| 92 | return false; |
| 93 | |
| 94 | Name.remove_prefix(Prefix.size()); |
| 95 | return true; |
| 96 | } |
| 97 | |
| 98 | bool tryReadKebab(std::string_view &Input, std::string_view &Output) { |
| 99 | size_t Pos = 0; |
no test coverage detected