Returns a string from current iterator position up to (but not including) next and advances iterator to the character following the on success. Will not return a line longer than max_line_length.
Declared in <util/string.h>
std::optional<std::string_view>
ReadLine();
| Name | Thrown on |
|---|---|
std::runtime_error | if max_line_length + 1 bytes are read without finding . |
the next string from the buffer. std::nullopt if end of buffer is reached without finding a .