IdentValueParser

Parses text in the form of:

/ident = value
/ident2 = value2
/         more text
/

Members

Functions

findNextIdent
bool findNextIdent(out cstring ident, out cchar* bodyBegin)

Finds the next "Identifier =".

parse
IdentValue[] parse(cstring text)

Parses the text into a list of IdentValues. All newlines in text must be converted to '\n'.

Static functions

textBody
cstring textBody(cchar* begin, cchar* end)

Strips off leading and trailing whitespace characters.

Variables

p
cchar* p;

Current pointer.

Meta