StringReader.readString

Reads a string until the next space character.

struct StringReader
string
readString
()

Throws

StringTerminatedException if there's nothing left to read

Examples

auto r = StringReader(`hello world`);
assert(r.readString() == "hello");
assert(r.readString() == "world");

Meta