| 446 | } |
| 447 | |
| 448 | static void skipUntilNextLine(ReadBuffer & buf) |
| 449 | { |
| 450 | while (!buf.eof()) |
| 451 | { |
| 452 | char * next_pos = find_first_symbols<'\n'>(buf.position(), buf.buffer().end()); |
| 453 | buf.position() = next_pos; |
| 454 | |
| 455 | if (!buf.hasPendingData()) |
| 456 | continue; |
| 457 | |
| 458 | if (*buf.position() == '\n') |
| 459 | { |
| 460 | ++buf.position(); |
| 461 | return; |
| 462 | } |
| 463 | } |
| 464 | } |
| 465 | |
| 466 | static void readStringUntilNextLine(std::string & s, ReadBuffer & buf) |
| 467 | { |
no test coverage detected