skipWC

Consumes all whitespace and comments from the front of the passed Hjson.

bool
skipWC
(
ref string hjson
,
ref size_t collumn
)

Parameters

hjson string

Hjson from which whitespace and comments should be consumed.

collumn size_t

How many dchars were popped from the front of hjson since last line feed. Will be updated by the function. Needed to properly parse multiline strings.

Return Value

Type: bool

true if a line feed was skipped, false otherwise. This is needed because line feeds can be used to separate aggregate members similar to commas.

Throws

HjsonException if a block comment is not terminated before the end of the string.

Meta