Ruby  2.1.10p492(2016-04-01revision54464)
Macros | Functions
reader.c File Reference
#include "yaml_private.h"

Go to the source code of this file.

Macros

#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)
 

Macro Definition Documentation

◆ BOM_UTF16BE

#define BOM_UTF16BE   "\xfe\xff"

Definition at line 43 of file reader.c.

Referenced by yaml_parser_determine_encoding().

◆ BOM_UTF16LE

#define BOM_UTF16LE   "\xff\xfe"

Definition at line 42 of file reader.c.

Referenced by yaml_parser_determine_encoding().

◆ BOM_UTF8

#define BOM_UTF8   "\xef\xbb\xbf"

Definition at line 41 of file reader.c.

Referenced by yaml_parser_determine_encoding().

Function Documentation

◆ yaml_parser_determine_encoding()

static int yaml_parser_determine_encoding ( yaml_parser_t parser)
static

◆ yaml_parser_set_reader_error()

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

◆ yaml_parser_update_buffer()

yaml_parser_update_buffer ( yaml_parser_t parser,
size_t  length 
)

◆ yaml_parser_update_raw_buffer()

static int yaml_parser_update_raw_buffer ( yaml_parser_t parser)
static