StringReader

Reads various types of strings from a single stream.

Constructors

this
this(string str)
Undocumented in source.

Members

Functions

readQuotedString
string readQuotedString()

Reads a string that may be quoted.

readString
string readString()

Reads a string until the next space character.

readText
string readText()

Reads the remaining text.

skip
void skip()

Skips spaces.

Properties

eof
bool eof [@property getter]

Indicates whether the string has been fully readed.

Examples

auto reader = StringReader(`a " quoted " long string`);
assert(reader.readString() == "a");
assert(reader.readQuotedString() == " quoted ");
assert(reader.readText() == "long string");

Meta