Set the allowConsecutiveSeparators option to the specified value and return a non‐`const` reference to this tokenizer. JSON defines two separator tokens: the colon (:) and the comma (,). If the allowConsecutiveSeparators value is true this tokenizer will accept multiple consecutive sequences of a given separator (e.g., "a"::b, "c":::d and "a":b,, "c":d, ,, "e":f') as if a single separator had appeared (i.e., "a":b, "c":d and "a":b, "c":d, "e":f', respectively). Otherwise the tokenizer returns an error when multiple consecutive colons are found. By default, the value of the allowConsecutiveSeparators option is true. The behavior is undefined unless e_RELAXED == conformanceMode(). Note that consecutive sequences using both tokens (e.g., ::,,::) is always an error.

Synopsis

Declared in <bdljsn_tokenizer.h>

Tokenizer&
setAllowConsecutiveSeparators(bool value);

Created with MrDocs