StringReader.readText

Reads the remaining text.

struct StringReader
string
readText
()

Throws

StringTerminatedException if there's nothing left to read

Examples

auto r = StringReader(`this is not a string`);
assert(r.readString() == "this");
assert(r.readQuotedString() == "is");
assert(r.readText() == "not a string");

Meta