| 31 | } |
| 32 | |
| 33 | static std::string getStringUntil(Source & source, char byte) |
| 34 | { |
| 35 | std::string s; |
| 36 | char n[1] = {0}; |
| 37 | source(std::string_view{n, 1}); |
| 38 | while (*n != byte) { |
| 39 | s += *n; |
| 40 | source(std::string_view{n, 1}); |
| 41 | } |
| 42 | return s; |
| 43 | } |
| 44 | |
| 45 | static std::string getString(Source & source, int n) |
| 46 | { |