Set the conformanceMode of this tokenizer to the specified mode and return a non‐`const` reference to this tokenizer. If mode is e_STRICT_20240119 the option values of this tokenizer are set to be fully compliant with RFC8259 (see https://www.rfc‐editor.org/rfc/rfc8259)

Synopsis

Declared in <bdljsn_tokenizer.h>

Tokenizer&
setConformanceMode(ConformanceMode mode);

Description

Specifically, those option values are: ` allowConsecutiveSeparators() == false; allowFormFeedAsWhitespace() == false; allowHeterogeneousArrays() == true; allowNonUtf8StringLiterals() == false; allowStandAloneValues() == true; allowTrailingTopLevelComma() == false; allowUnescapedControlCharacters() = false; ` Otherwise (i.e., mode is e_RELAXED), those option values can be set in any combination. Note that the behavior is undefined if individual options are set when conformanceMode is not e_RELAXED.

Created with MrDocs