| 263 | } |
| 264 | |
| 265 | static void ReadUpToDelimiter(IInputStream& i, TString& s) { |
| 266 | char c; |
| 267 | while (i.ReadChar(c)) { // skip delimiters |
| 268 | if (!IsStdDelimiter(c)) { |
| 269 | s += c; |
| 270 | break; |
| 271 | } |
| 272 | } |
| 273 | while (i.ReadChar(c) && !IsStdDelimiter(c)) { // read data (with trailing delimiter) |
| 274 | s += c; |
| 275 | } |
| 276 | } |
| 277 | |
| 278 | // specialization for string-related stuff |
| 279 |
no test coverage detected