util::LineReader::ReadLine

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.

Synopsis

Declared in <util/string.h>

std::optional<std::string_view>
ReadLine();

Exceptions

NameThrown on
std::runtime_errorif max_line_length + 1 bytes are read without finding .

Return Value

the next string from the buffer. std::nullopt if end of buffer is reached without finding a .