Function yaml_parser_set_encoding

Synopsis

#include <include/yaml.h>

void yaml_parser_set_encoding(yaml_parser_t *parser, yaml_encoding_t encoding)

Description

Set the source encoding.

Parameters:

[ in,out ] parser - A parser object.

[ in ] encoding - The source encoding.

Set the source encoding.

Source

Lines 341-348 in src/api.c. Line 1384 in include/yaml.h.

YAML_DECLARE(void)
yaml_parser_set_encoding(yaml_parser_t *parser, yaml_encoding_t encoding)
{
    assert(parser); /* Non-NULL parser object expected. */
    assert(!parser->encoding); /* Encoding is already set or detected. */

    parser->encoding = encoding;
}





Add Discussion as Guest

Log in to DocsForge