Ruby  2.0.0p247(2013-06-27revision41674)
Defines | Functions
ext/psych/yaml/reader.c File Reference
#include "yaml_private.h"

Go to the source code of this file.

Defines

#define BOM_UTF8   "\xef\xbb\xbf"
#define BOM_UTF16LE   "\xff\xfe"
#define BOM_UTF16BE   "\xfe\xff"

Functions

static int yaml_parser_set_reader_error (yaml_parser_t *parser, const char *problem, size_t offset, int value)
static int yaml_parser_update_raw_buffer (yaml_parser_t *parser)
static int yaml_parser_determine_encoding (yaml_parser_t *parser)
 yaml_parser_update_buffer (yaml_parser_t *parser, size_t length)

Define Documentation

#define BOM_UTF16BE   "\xfe\xff"

Definition at line 43 of file reader.c.

Referenced by yaml_parser_determine_encoding().

#define BOM_UTF16LE   "\xff\xfe"

Definition at line 42 of file reader.c.

Referenced by yaml_parser_determine_encoding().

#define BOM_UTF8   "\xef\xbb\xbf"

Definition at line 41 of file reader.c.

Referenced by yaml_parser_determine_encoding().


Function Documentation

static int yaml_parser_determine_encoding ( yaml_parser_t parser) [static]
static int yaml_parser_set_reader_error ( yaml_parser_t parser,
const char *  problem,
size_t  offset,
int  value 
) [static]

Definition at line 26 of file reader.c.

References YAML_READER_ERROR.

Referenced by yaml_parser_update_buffer(), and yaml_parser_update_raw_buffer().

yaml_parser_update_buffer ( yaml_parser_t parser,
size_t  length 
)
static int yaml_parser_update_raw_buffer ( yaml_parser_t parser) [static]