| 75 | bool isEOF(std::string_view Input) { return Input.empty(); } |
| 76 | |
| 77 | bool readUntil(std::string_view &Input, char Delim, std::string_view &Output) { |
| 78 | size_t Pos = Input.find(Delim); |
| 79 | if (Pos == Input.npos) { |
| 80 | return false; |
| 81 | } |
| 82 | |
| 83 | Output = Input.substr(0, Pos); |
| 84 | Input.remove_prefix(Pos + 1); |
| 85 | return true; |
| 86 | } |
| 87 | |
| 88 | bool tryRead(std::string_view Prefix, std::string_view &Name) { |
| 89 | if (Prefix.size() > Name.size()) |
no test coverage detected