inp.format.parse

Parser utilities.

Members

Aliases

ErrorString
alias ErrorString = string
Undocumented in source.

Functions

eof
bool eof(StreamReader reader)

Gets whether the end of the stream has been reached.

isNumeric
bool isNumeric(char c)

Gets whether the upcoming character is a numeric symbol.

peekChar
char peekChar(StreamReader reader)

Peeks a single ASCII character from the stream.

peekString
nstring peekString(StreamReader reader, uint length)

Takes a peek at the upcoming string contents of the given stream.

peekString
bool peekString(StreamReader reader, string key)

Peeks a string from the stream and checks whether it is the same as the given key.

readNumberJson
nstring readNumberJson(StreamReader reader, bool isFloating)

Reads JSON encoded numbers from the stream.

readStringJson
nstring readStringJson(StreamReader reader)

Reads a JSON string element from the given stream.

skip
void skip(StreamReader reader, ptrdiff_t count)

Skips the given amount of characters in the stream.

skipWhitespace
void skipWhitespace(StreamReader reader)

Skips ascii whitespace characters.

Meta

Authors

Luna Nielsen