Function yaml_emitter_set_canonical

Synopsis

#include <include/yaml.h>

void yaml_emitter_set_canonical(yaml_emitter_t *emitter, int canonical)

Description

Set if the output should be in the "canonical" format as in the YAML specification.

Parameters:

[ in,out ] emitter - An emitter object.

[ in ] canonical - If the output is canonical.

Set the canonical output style.

Source

Lines 523-529 in src/api.c. Line 1865 in include/yaml.h.

YAML_DECLARE(void)
yaml_emitter_set_canonical(yaml_emitter_t *emitter, int canonical)
{
    assert(emitter);    /* Non-NULL emitter object expected. */

    emitter->canonical = (canonical != 0);
}





Add Discussion as Guest

Log in to DocsForge