Function yaml_emitter_set_encoding

Synopsis

#include <include/yaml.h>

void yaml_emitter_set_encoding(yaml_emitter_t *emitter, yaml_encoding_t encoding)

Description

Set the output encoding.

Parameters:

[ in,out ] emitter - An emitter object.

[ in ] encoding - The output encoding.

Set the output encoding.

Source

Lines 510-517 in src/api.c. Line 1854 in include/yaml.h.

YAML_DECLARE(void)
yaml_emitter_set_encoding(yaml_emitter_t *emitter, yaml_encoding_t encoding)
{
    assert(emitter);    /* Non-NULL emitter object expected. */
    assert(!emitter->encoding);     /* You can set encoding only once. */

    emitter->encoding = encoding;
}





Add Discussion as Guest

Log in to DocsForge