Ruby
2.4.2p198(2017-09-14revision59899)
|
#include <psych.h>
Go to the source code of this file.
Functions | |
static void | emit (yaml_emitter_t *emitter, yaml_event_t *event) |
static int | writer (void *ctx, unsigned char *buffer, size_t size) |
static void | dealloc (void *ptr) |
static VALUE | allocate (VALUE klass) |
static VALUE | initialize (int argc, VALUE *argv, VALUE self) |
static VALUE | start_stream (VALUE self, VALUE encoding) |
static VALUE | end_stream (VALUE self) |
static VALUE | start_document (VALUE self, VALUE version, VALUE tags, VALUE imp) |
static VALUE | end_document (VALUE self, VALUE imp) |
static VALUE | scalar (VALUE self, VALUE value, VALUE anchor, VALUE tag, VALUE plain, VALUE quoted, VALUE style) |
static VALUE | start_sequence (VALUE self, VALUE anchor, VALUE tag, VALUE implicit, VALUE style) |
static VALUE | end_sequence (VALUE self) |
static VALUE | start_mapping (VALUE self, VALUE anchor, VALUE tag, VALUE implicit, VALUE style) |
static VALUE | end_mapping (VALUE self) |
static VALUE | alias (VALUE self, VALUE anchor) |
static VALUE | set_canonical (VALUE self, VALUE style) |
static VALUE | canonical (VALUE self) |
static VALUE | set_indentation (VALUE self, VALUE level) |
static VALUE | indentation (VALUE self) |
static VALUE | line_width (VALUE self) |
static VALUE | set_line_width (VALUE self, VALUE width) |
void | Init_psych_emitter (void) |
Variables | |
VALUE | cPsychEmitter |
static ID | id_io |
static ID | id_write |
static ID | id_line_width |
static ID | id_indentation |
static ID | id_canonical |
static const rb_data_type_t | psych_emitter_type |
Definition at line 422 of file psych_emitter.c.
References Check_Type, emit(), NIL_P, NULL, rb_str_export_to_enc(), rb_utf8_encoding(), StringValuePtr, T_STRING, TypedData_Get_Struct, and yaml_alias_event_initialize().
Referenced by Init_psych_emitter().
Definition at line 58 of file psych_emitter.c.
References TypedData_Make_Struct, yaml_emitter_initialize(), yaml_emitter_set_indent(), and yaml_emitter_set_unicode().
Referenced by Init_psych_emitter().
Definition at line 461 of file psych_emitter.c.
References yaml_emitter_s::canonical, Qfalse, Qtrue, and TypedData_Get_Struct.
Referenced by Init_psych_emitter(), initialize(), and yaml_emitter_set_canonical().
|
static |
Definition at line 31 of file psych_emitter.c.
References xfree(), and yaml_emitter_delete().
|
static |
Definition at line 17 of file psych_emitter.c.
References yaml_emitter_s::problem, rb_eRuntimeError, rb_raise(), and yaml_emitter_emit().
Referenced by alias(), end_document(), end_mapping(), end_sequence(), end_stream(), scalar(), start_document(), start_mapping(), start_sequence(), and start_stream().
Definition at line 223 of file psych_emitter.c.
References emit(), TypedData_Get_Struct, and yaml_document_end_event_initialize().
Referenced by Init_psych_emitter().
Definition at line 403 of file psych_emitter.c.
References emit(), TypedData_Get_Struct, and yaml_mapping_end_event_initialize().
Referenced by Init_psych_emitter().
Definition at line 339 of file psych_emitter.c.
References emit(), TypedData_Get_Struct, and yaml_sequence_end_event_initialize().
Referenced by Init_psych_emitter().
Definition at line 126 of file psych_emitter.c.
References emit(), TypedData_Get_Struct, and yaml_stream_end_event_initialize().
Referenced by Init_psych_emitter().
Definition at line 488 of file psych_emitter.c.
References yaml_emitter_s::best_indent, INT2NUM, and TypedData_Get_Struct.
Referenced by Init_psych_emitter().
void Init_psych_emitter | ( | void | ) |
Definition at line 522 of file psych_emitter.c.
References alias(), allocate(), canonical(), cPsychEmitter, end_document(), end_mapping(), end_sequence(), end_stream(), id_canonical, id_indentation, id_io, id_line_width, id_write, indentation(), initialize(), line_width(), rb_cObject, rb_define_alloc_func(), rb_define_class_under(), rb_define_method(), rb_define_module(), rb_intern, scalar(), set_canonical(), set_indentation(), set_line_width(), start_document(), start_mapping(), start_sequence(), and start_stream().
Referenced by Init_psych().
Definition at line 74 of file psych_emitter.c.
References canonical(), id_canonical, id_indentation, id_io, id_line_width, line_width(), NUM2INT, options(), Qtrue, rb_funcall(), rb_ivar_set(), rb_scan_args(), TypedData_Get_Struct, writer(), yaml_emitter_set_canonical(), yaml_emitter_set_indent(), yaml_emitter_set_output(), and yaml_emitter_set_width().
Referenced by Init_psych_emitter().
Definition at line 500 of file psych_emitter.c.
References yaml_emitter_s::best_width, INT2NUM, and TypedData_Get_Struct.
Referenced by Init_psych_emitter(), and initialize().
|
static |
Definition at line 243 of file psych_emitter.c.
References Check_Type, emit(), NIL_P, NULL, NUM2INT, rb_str_export_to_enc(), rb_utf8_encoding(), RSTRING_LEN, StringValuePtr, T_STRING, TypedData_Get_Struct, and yaml_scalar_event_initialize().
Referenced by Init_psych_emitter().
Definition at line 447 of file psych_emitter.c.
References Qtrue, TypedData_Get_Struct, and yaml_emitter_set_canonical().
Referenced by Init_psych_emitter().
Definition at line 474 of file psych_emitter.c.
References level, NUM2INT, TypedData_Get_Struct, and yaml_emitter_set_indent().
Referenced by Init_psych_emitter().
Definition at line 512 of file psych_emitter.c.
References NUM2INT, TypedData_Get_Struct, and yaml_emitter_set_width().
Referenced by Init_psych_emitter().
Definition at line 146 of file psych_emitter.c.
References Check_Type, emit(), yaml_tag_directive_s::handle, len, yaml_version_directive_s::major, yaml_version_directive_s::minor, name, NULL, NUM2INT, yaml_tag_directive_s::prefix, RARRAY_AREF, RARRAY_LEN, rb_ary_entry(), rb_eRuntimeError, rb_raise(), rb_str_export_to_enc(), rb_utf8_encoding(), RSTRING_PTR, RTEST, StringValue, T_ARRAY, TypedData_Get_Struct, xcalloc, xfree(), and yaml_document_start_event_initialize().
Referenced by Init_psych_emitter().
|
static |
Definition at line 359 of file psych_emitter.c.
References Check_Type, emit(), NIL_P, NULL, NUM2INT, rb_str_export_to_enc(), rb_utf8_encoding(), StringValuePtr, T_STRING, TypedData_Get_Struct, and yaml_mapping_start_event_initialize().
Referenced by Init_psych_emitter().
|
static |
Definition at line 296 of file psych_emitter.c.
References Check_Type, emit(), NIL_P, NULL, NUM2INT, rb_str_export_to_enc(), rb_utf8_encoding(), StringValuePtr, T_STRING, TypedData_Get_Struct, and yaml_sequence_start_event_initialize().
Referenced by Init_psych_emitter().
Definition at line 106 of file psych_emitter.c.
References Check_Type, emit(), NUM2INT, T_FIXNUM, TypedData_Get_Struct, and yaml_stream_start_event_initialize().
Referenced by Init_psych_emitter().
|
static |
Definition at line 23 of file psych_emitter.c.
References id_io, id_write, NUM2INT, rb_attr_get(), rb_enc_str_new(), rb_funcall(), and rb_utf8_encoding().
Referenced by initialize().
VALUE cPsychEmitter |
Definition at line 10 of file psych_emitter.c.
Referenced by Init_psych_emitter().
|
static |
Definition at line 15 of file psych_emitter.c.
Referenced by Init_psych_emitter(), and initialize().
|
static |
Definition at line 14 of file psych_emitter.c.
Referenced by Init_psych_emitter(), and initialize().
|
static |
Definition at line 11 of file psych_emitter.c.
Referenced by Init_psych_emitter(), initialize(), and writer().
|
static |
Definition at line 13 of file psych_emitter.c.
Referenced by Init_psych_emitter(), and initialize().
|
static |
Definition at line 12 of file psych_emitter.c.
Referenced by Init_psych_emitter(), and writer().
|
static |
Definition at line 49 of file psych_emitter.c.