Ruby 1.9.2p136(2010-12-25revision30365)

- Main Page
- Modules
- Data Structures
- Files

- File List
- Globals

Data Structures | Defines | Typedefs | Functions | Variables

# ext/json/generator/generator.h File Reference

`#include <string.h>`
`#include <assert.h>`
`#include <math.h>`
`#include "ruby.h"`
Include dependency graph for generator.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

## Data Structures
struct | FBufferStruct
struct | JSON_Generator_StateStruct
## Defines
#define | FORCE_UTF8(obj)
#define | option_given_p(opts, key) RTEST(rb_funcall(opts, i_key_p, 1, key))
#define | RHASH_SIZE(hsh) (RHASH(hsh)->tbl->num_entries)
#define | RFLOAT_VALUE(val) (RFLOAT(val)->value)
#define | RARRAY_PTR(ARRAY) RARRAY(ARRAY)->ptr
#define | RARRAY_LEN(ARRAY) RARRAY(ARRAY)->len
#define | RSTRING_PTR(string) RSTRING(string)->ptr
#define | RSTRING_LEN(string) RSTRING(string)->len
#define | RSTRING_PAIR(string) RSTRING_PTR(string), RSTRING_LEN(string)
#define | FBUFFER_INITIAL_LENGTH 4096
#define | FBUFFER_PTR(fb) (fb->ptr)
#define | FBUFFER_LEN(fb) (fb->len)
#define | FBUFFER_CAPA(fb) (fb->capa)
#define | FBUFFER_PAIR(fb) FBUFFER_PTR(fb), FBUFFER_LEN(fb)
#define | UNI_STRICT_CONVERSION 1
#define | UNI_REPLACEMENT_CHAR (UTF32)0x0000FFFD
#define | UNI_MAX_BMP (UTF32)0x0000FFFF
#define | UNI_MAX_UTF16 (UTF32)0x0010FFFF
#define | UNI_MAX_UTF32 (UTF32)0x7FFFFFFF
#define | UNI_MAX_LEGAL_UTF32 (UTF32)0x0010FFFF
#define | UNI_SUR_HIGH_START (UTF32)0xD800
#define | UNI_SUR_HIGH_END (UTF32)0xDBFF
#define | UNI_SUR_LOW_START (UTF32)0xDC00
#define | UNI_SUR_LOW_END (UTF32)0xDFFF
#define | GET_STATE(self)
## Typedefs
typedef struct FBufferStruct | FBuffer
typedef unsigned long | UTF32
typedef unsigned short | UTF16
typedef unsigned char | UTF8
typedef struct JSON_Generator_StateStruct | JSON_Generator_State
## Functions
static char * | fstrndup (const char *ptr, int len)
static FBuffer * | fbuffer_alloc ()
static FBuffer * | fbuffer_alloc_with_length (unsigned initial_length)
static void | fbuffer_free (FBuffer *fb)
static void | fbuffer_free_only_buffer (FBuffer *fb)
static void | fbuffer_clear (FBuffer *fb)
static void | fbuffer_append (FBuffer *fb, const char *newstr, unsigned int len)
static void | fbuffer_append_long (FBuffer *fb, long number)
static void | fbuffer_append_char (FBuffer *fb, char newchr)
static FBuffer * | fbuffer_dup (FBuffer *fb)
static unsigned char | isLegalUTF8 (const UTF8 *source, int length)
static void | unicode_escape (char *buf, UTF16 character)
static void | unicode_escape_to_buffer (FBuffer *buffer, char buf[6], UTF16 character)
static void | convert_UTF8_to_JSON_ASCII (FBuffer *buffer, VALUE string)
static void | convert_UTF8_to_JSON (FBuffer *buffer, VALUE string)
static VALUE | mHash_to_json (int argc, VALUE *argv, VALUE self)
static VALUE | mArray_to_json (int argc, VALUE *argv, VALUE self)
static VALUE | mInteger_to_json (int argc, VALUE *argv, VALUE self)
static VALUE | mFloat_to_json (int argc, VALUE *argv, VALUE self)
static VALUE | mString_included_s (VALUE self, VALUE modul)
static VALUE | mString_to_json (int argc, VALUE *argv, VALUE self)
static VALUE | mString_to_json_raw_object (VALUE self)
static VALUE | mString_to_json_raw (int argc, VALUE *argv, VALUE self)
static VALUE | mString_Extend_json_create (VALUE self, VALUE o)
static VALUE | mTrueClass_to_json (int argc, VALUE *argv, VALUE self)
static VALUE | mFalseClass_to_json (int argc, VALUE *argv, VALUE self)
static VALUE | mNilClass_to_json (int argc, VALUE *argv, VALUE self)
static VALUE | mObject_to_json (int argc, VALUE *argv, VALUE self)
static void | State_free (JSON_Generator_State *state)
static JSON_Generator_State * | State_allocate ()
static VALUE | cState_s_allocate (VALUE klass)
static VALUE | cState_configure (VALUE self, VALUE opts)
static VALUE | cState_to_h (VALUE self)
static void | generate_json (FBuffer *buffer, VALUE Vstate, JSON_Generator_State *state, VALUE obj, long depth)
static VALUE | cState_partial_generate (VALUE self, VALUE obj, VALUE depth)
static VALUE | cState_generate (VALUE self, VALUE obj)
static VALUE | cState_initialize (int argc, VALUE *argv, VALUE self)
static VALUE | cState_from_state_s (VALUE self, VALUE opts)
static VALUE | cState_indent (VALUE self)
static VALUE | cState_indent_set (VALUE self, VALUE indent)
static VALUE | cState_space (VALUE self)
static VALUE | cState_space_set (VALUE self, VALUE space)
static VALUE | cState_space_before (VALUE self)
static VALUE | cState_space_before_set (VALUE self, VALUE space_before)
static VALUE | cState_object_nl (VALUE self)
static VALUE | cState_object_nl_set (VALUE self, VALUE object_nl)
static VALUE | cState_array_nl (VALUE self)
static VALUE | cState_array_nl_set (VALUE self, VALUE array_nl)
static VALUE | cState_max_nesting (VALUE self)
static VALUE | cState_max_nesting_set (VALUE self, VALUE depth)
static VALUE | cState_allow_nan_p (VALUE self)
static VALUE | cState_ascii_only_p (VALUE self)
## Variables
static const int | halfShift = 10
static const UTF32 | halfBase = 0x0010000UL
static const UTF32 | halfMask = 0x3FFUL

## Define Documentation

#define FBUFFER_CAPA | ( |  | fb | ) | (fb->capa)

Definition at line 63 of file generator.h.

#define FBUFFER_INITIAL_LENGTH 4096

Definition at line 59 of file generator.h.

Referenced by fbuffer_alloc().

#define FBUFFER_LEN | ( |  | fb | ) | (fb->len)

Definition at line 62 of file generator.h.

Referenced by generate_json().

#define FBUFFER_PAIR | ( |  | fb | ) | FBUFFER_PTR(fb), FBUFFER_LEN(fb)

Definition at line 64 of file generator.h.

Referenced by cState_partial_generate(), and fbuffer_dup().

#define FBUFFER_PTR | ( |  | fb | ) | (fb->ptr)

Definition at line 61 of file generator.h.

Referenced by generate_json().

#define FORCE_UTF8 | ( |  | obj | ) |

Definition at line 22 of file generator.h.

Referenced by convert_encoding(), cState_partial_generate(), and JSON_parse_string().

#define GET_STATE | ( |  | self | ) |

Value:

    JSON_Generator_State *state;              \
        Data_Get_Struct(self, JSON_Generator_State, state)

Definition at line 128 of file generator.h.

Referenced by cState_allow_nan_p(), cState_aref(), cState_array_nl(), cState_array_nl_set(), cState_ascii_only_p(), cState_check_circular_p(), cState_configure(), cState_indent(), cState_indent_set(), cState_initialize(), cState_max_nesting(), cState_max_nesting_set(), cState_object_nl(), cState_object_nl_set(), cState_partial_generate(), cState_space(), cState_space_before(), cState_space_before_set(), cState_space_set(), and cState_to_h().

#define option_given_p | ( |  | opts,
|  |  | key
| ) |  | RTEST(rb_funcall(opts, i_key_p, 1, key))

Definition at line 25 of file generator.h.

Referenced by cParser_initialize(), and cState_configure().

#define RARRAY_LEN | ( |  | ARRAY | ) | RARRAY(ARRAY)->len

Definition at line 39 of file generator.h.

Referenced by apply2files(), argf_next_argv(), argf_readpartial(), ary2ptr_dispparams(), ary2sv(), ary_add_hash(), ary_add_hash_by(), ary_join_1(), ary_len_of_dim(), ary_make_partial(), ary_make_shared(), ary_make_shared_copy(), ary_make_substitution(), ary_resize_capa(), ary_take_first_or_last(), bmcall(), caller_setup_args(), check_exec_fds(), check_exec_redirect(), clear_coverage_i(), curry(), dimension(), dir_s_glob(), do_coerce(), each_cons_i(), each_slice_i(), enum_cycle(), enum_each_slice(), enum_reverse_each(), enum_sort_by(), env_each_key(), env_each_pair(), env_each_value(), env_reject_bang(), env_replace(), env_select_bang(), error_print(), eval_string_with_cref(), extract_user_token(), fdbm_delete_if(), fgdbm_delete_if(), filename_completion_proc_call(), flatten(), foletypelib_initialize(), folevariant_initialize(), folevariant_s_array(), fsdbm_delete_if(), gc_mark_children(), gc_profile_result(), generate_json(), get_stack_tail(), iconv_convert(), initialize(), initialize_params(), inspect_ary(), inspect_enumerator(), io_puts_ary(), iseq_build_body(), iseq_build_exception(), iseq_data_to_ary(), iseq_set_exception_table(), iseq_set_sequence(), loaded_feature_path(), make_struct(), num_members(), ole_invoke2(), ole_search_event(), ole_search_event_at(), open_key_args(), ossl_sslctx_set_ciphers(), ossl_sslctx_setup(), ossl_x509_set_extensions(), ossl_x509crl_set_extensions(), ossl_x509crl_set_revoked(), ossl_x509req_set_attributes(), ossl_x509revoked_set_extensions(), pack_pack(), pack_unpack(), parse_main(), process_options(), process_sflag(), r_object0(), random_load(), rb_ary_and(), rb_ary_aref(), rb_ary_aset(), rb_ary_assoc(), rb_ary_cmp(), rb_ary_collect(), rb_ary_collect_bang(), rb_ary_combination(), rb_ary_compact_bang(), rb_ary_concat(), rb_ary_count(), rb_ary_cycle(), rb_ary_delete(), rb_ary_delete_at(), rb_ary_diff(), rb_ary_drop(), rb_ary_drop_while(), rb_ary_dup(), rb_ary_dup_setup(), rb_ary_each(), rb_ary_each_index(), rb_ary_elt(), rb_ary_empty_p(), rb_ary_entry(), rb_ary_eql(), rb_ary_equal(), rb_ary_fetch(), rb_ary_fill(), rb_ary_first(), rb_ary_includes(), rb_ary_index(), rb_ary_insert(), rb_ary_inspect(), rb_ary_join(), rb_ary_last(), rb_ary_length(), rb_ary_modify(), rb_ary_or(), rb_ary_permutation(), rb_ary_plus(), rb_ary_pop(), rb_ary_pop_m(), rb_ary_product(), rb_ary_push_1(), rb_ary_rassoc(), rb_ary_reject_bang(), rb_ary_repeated_combination(), rb_ary_repeated_permutation(), rb_ary_replace(), rb_ary_resurrect(), rb_ary_reverse(), rb_ary_reverse_each(), rb_ary_reverse_m(), rb_ary_rindex(), rb_ary_rotate(), rb_ary_rotate_m(), rb_ary_sample(), rb_ary_select(), rb_ary_select_bang(), rb_ary_shift(), rb_ary_shift_m(), rb_ary_shuffle_bang(), rb_ary_slice_bang(), rb_ary_sort_bang(), rb_ary_splice(), rb_ary_store(), rb_ary_subseq(), rb_ary_take_while(), rb_ary_times(), rb_ary_to_a(), rb_ary_transpose(), rb_ary_uniq(), rb_ary_uniq_bang(), rb_ary_unshift_m(), rb_ary_values_at(), rb_ary_zip(), rb_check_argv(), rb_check_backtrace(), rb_dlcfunc_call(), rb_econv_init_by_convpath(), rb_env_clear(), rb_exec_arg_addopt(), rb_feature_p(), rb_file_join(), rb_find_file_ext_safe(), rb_find_file_safe(), rb_get_expanded_load_path(), rb_hash_s_create(), rb_io_s_popen(), rb_iseq_build_from_ary(), rb_iseq_disasm(), rb_proc_call(), rb_reg_preprocess_dregexp(), rb_reg_s_union(), rb_reg_s_union_m(), rb_run_exec_options_err(), rb_str_split_m(), rb_struct_aref_id(), rb_struct_aset_id(), rb_struct_getmember(), rb_struct_members(), rb_struct_s_def(), rb_struct_s_members_m(), rb_struct_set(), readline_attempted_completion_function(), recursive_cmp(), recursive_eql(), recursive_equal(), recursive_hash(), reduce0(), require_libraries(), run_exec_close(), run_exec_dup2(), run_exec_dup2_child(), run_exec_open(), run_exec_rlimit(), run_finalizer(), select_internal(), sock_s_getnameinfo(), STACK_OF(), start_document(), string_to_r_internal(), syck_const_find(), syck_map_initialize(), syck_map_value_set(), syck_resolver_transfer(), syck_seq_value_set(), thread_start_func_2(), update_i(), username_completion_proc_call(), vm_expandarray(), w_object(), zip_ary(), and zip_i().

#define RARRAY_PTR | ( |  | ARRAY | ) | RARRAY(ARRAY)->ptr

Definition at line 36 of file generator.h.

Referenced by apply2files(), ary2sv(), ary_add_hash(), ary_join_0(), ary_join_1(), ary_make_partial(), ary_make_shared(), ary_make_substitution(), ary_resize_capa(), BigDecimal_to_i(), BigDecimal_to_r(), bmcall(), callback(), caller_setup_args(), check_exec_fds(), check_exec_redirect(), check_funcall_exec(), clear_coverage_i(), coverage(), curry(), decorate_convpath(), dir_s_glob(), do_coerce(), enum_cycle(), enum_reverse_each(), enum_sort_by(), enum_zip(), enumerator_block_call(), env_each_key(), env_each_pair(), env_each_value(), env_reject_bang(), env_replace(), env_select_bang(), error_print(), eval_string_with_cref(), fdbm_delete_if(), fgdbm_delete_if(), flatten(), fsdbm_delete_if(), function_call(), gc_mark_children(), gc_profile_result(), get_stack_tail(), iconv_convert(), initialize(), initialize_params(), inspect_ary(), inspect_enumerator(), inspect_struct(), io_puts_ary(), iseq_build_body(), iseq_build_exception(), iseq_data_to_ary(), iseq_set_arguments(), iseq_set_exception_table(), loaded_feature_path(), make_addrinfo(), make_struct(), method_missing(), nucomp_marshal_load(), nurat_marshal_load(), open_key_args(), ossl_sslctx_setup(), ossl_x509_set_extensions(), ossl_x509crl_set_extensions(), ossl_x509crl_set_revoked(), ossl_x509req_set_attributes(), ossl_x509revoked_set_extensions(), pack_pack(), pack_unpack(), parse_main(), permute0(), process_options(), process_sflag(), r_object0(), random_load(), rb_apply(), rb_ary_assoc(), rb_ary_collect(), rb_ary_collect_bang(), rb_ary_combination(), rb_ary_compact_bang(), rb_ary_count(), rb_ary_cycle(), rb_ary_delete(), rb_ary_delete_at(), rb_ary_diff(), rb_ary_drop_while(), rb_ary_dup(), rb_ary_each(), rb_ary_elt(), rb_ary_fetch(), rb_ary_fill(), rb_ary_first(), rb_ary_includes(), rb_ary_index(), rb_ary_initialize(), rb_ary_join(), rb_ary_last(), rb_ary_modify(), rb_ary_new3(), rb_ary_new4(), rb_ary_permutation(), rb_ary_plus(), rb_ary_pop(), rb_ary_product(), rb_ary_push_1(), rb_ary_rassoc(), rb_ary_reject_bang(), rb_ary_repeated_combination(), rb_ary_repeated_permutation(), rb_ary_replace(), rb_ary_resurrect(), rb_ary_reverse(), rb_ary_reverse_each(), rb_ary_reverse_m(), rb_ary_rindex(), rb_ary_rotate(), rb_ary_rotate_m(), rb_ary_s_create(), rb_ary_sample(), rb_ary_select(), rb_ary_select_bang(), rb_ary_shift(), rb_ary_shift_m(), rb_ary_shuffle_bang(), rb_ary_slice_bang(), rb_ary_sort_bang(), rb_ary_splice(), rb_ary_store(), rb_ary_take_while(), rb_ary_times(), rb_ary_unshift_m(), rb_check_argv(), rb_check_backtrace(), rb_dlcfunc_call(), rb_env_clear(), rb_eval_cmd(), rb_feature_p(), rb_fiber_start(), rb_file_join(), rb_find_file_ext_safe(), rb_find_file_safe(), rb_get_expanded_load_path(), rb_hash_s_create(), rb_io_s_popen(), rb_iseq_build_from_ary(), rb_proc_call(), rb_reg_preprocess_dregexp(), rb_run_exec_options_err(), rb_str_format_m(), rb_str_split_m(), rb_struct_alloc(), rb_struct_aref_id(), rb_struct_aset_id(), rb_struct_getmember(), rb_struct_initialize(), rb_struct_new(), rb_struct_s_def(), rb_struct_s_members_m(), rb_struct_set(), rb_yield_splat(), rcombinate0(), readline_attempted_completion_function(), recursive_hash(), reduce0(), rpermute0(), run_exec_close(), run_exec_dup2(), run_exec_dup2_child(), run_exec_open(), run_exec_rlimit(), run_finalizer(), select_internal(), sock_s_getnameinfo(), start_document(), string_to_c(), string_to_c_strict(), string_to_r(), string_to_r_internal(), string_to_r_strict(), sym_to_proc(), thread_initialize(), thread_start_func_2(), update_coverage(), update_i(), vm_call0(), vm_expandarray(), vm_yield_setup_block_args(), w_object(), yield_under(), zip_ary(), and zip_i().

#define RFLOAT_VALUE | ( |  | val | ) | (RFLOAT(val)->value)

Definition at line 32 of file generator.h.

Referenced by big_fdiv(), big_op(), f_signbit(), fix_cmp(), fix_divide(), fix_divmod(), fix_equal(), fix_fdiv(), fix_ge(), fix_gt(), fix_le(), fix_lt(), fix_minus(), fix_mod(), fix_mul(), fix_plus(), fix_pow(), flo_abs(), flo_ceil(), flo_cmp(), flo_div(), flo_divmod(), flo_eq(), flo_eql(), flo_floor(), flo_ge(), flo_gt(), flo_hash(), flo_is_finite_p(), flo_is_infinite_p(), flo_is_nan_p(), flo_le(), flo_lt(), flo_minus(), flo_mod(), flo_mul(), flo_plus(), flo_pow(), flo_round(), flo_to_s(), flo_truncate(), flo_uminus(), flo_zero_p(), float_arg(), float_decode_internal(), float_denominator(), float_numerator(), float_value(), generate_json(), math_acos(), math_acosh(), math_asin(), math_asinh(), math_atan(), math_atan2(), math_atanh(), math_cbrt(), math_cos(), math_cosh(), math_erf(), math_erfc(), math_exp(), math_frexp(), math_gamma(), math_hypot(), math_ldexp(), math_lgamma(), math_log(), math_log10(), math_log2(), math_sin(), math_sinh(), math_sqrt(), math_tan(), math_tanh(), negate_lit(), opt_eq_func(), pack_pack(), random_rand(), rb_big_cmp(), rb_big_divide(), rb_big_eq(), rb_big_fdiv(), rb_big_minus(), rb_big_mul(), rb_big_plus(), rb_big_pow(), rb_convert_to_integer(), rb_dl_callback_double_0_0_cdecl(), rb_dl_callback_double_0_1_cdecl(), rb_dl_callback_double_0_2_cdecl(), rb_dl_callback_double_0_3_cdecl(), rb_dl_callback_double_0_4_cdecl(), rb_dl_callback_double_10_0_cdecl(), rb_dl_callback_double_10_1_cdecl(), rb_dl_callback_double_10_2_cdecl(), rb_dl_callback_double_10_3_cdecl(), rb_dl_callback_double_10_4_cdecl(), rb_dl_callback_double_11_0_cdecl(), rb_dl_callback_double_11_1_cdecl(), rb_dl_callback_double_11_2_cdecl(), rb_dl_callback_double_11_3_cdecl(), rb_dl_callback_double_11_4_cdecl(), rb_dl_callback_double_12_0_cdecl(), rb_dl_callback_double_12_1_cdecl(), rb_dl_callback_double_12_2_cdecl(), rb_dl_callback_double_12_3_cdecl(), rb_dl_callback_double_12_4_cdecl(), rb_dl_callback_double_13_0_cdecl(), rb_dl_callback_double_13_1_cdecl(), rb_dl_callback_double_13_2_cdecl(), rb_dl_callback_double_13_3_cdecl(), rb_dl_callback_double_13_4_cdecl(), rb_dl_callback_double_14_0_cdecl(), rb_dl_callback_double_14_1_cdecl(), rb_dl_callback_double_14_2_cdecl(), rb_dl_callback_double_14_3_cdecl(), rb_dl_callback_double_14_4_cdecl(), rb_dl_callback_double_15_0_cdecl(), rb_dl_callback_double_15_1_cdecl(), rb_dl_callback_double_15_2_cdecl(), rb_dl_callback_double_15_3_cdecl(), rb_dl_callback_double_15_4_cdecl(), rb_dl_callback_double_16_0_cdecl(), rb_dl_callback_double_16_1_cdecl(), rb_dl_callback_double_16_2_cdecl(), rb_dl_callback_double_16_3_cdecl(), rb_dl_callback_double_16_4_cdecl(), rb_dl_callback_double_17_0_cdecl(), rb_dl_callback_double_17_1_cdecl(), rb_dl_callback_double_17_2_cdecl(), rb_dl_callback_double_17_3_cdecl(), rb_dl_callback_double_17_4_cdecl(), rb_dl_callback_double_18_0_cdecl(), rb_dl_callback_double_18_1_cdecl(), rb_dl_callback_double_18_2_cdecl(), rb_dl_callback_double_18_3_cdecl(), rb_dl_callback_double_18_4_cdecl(), rb_dl_callback_double_19_0_cdecl(), rb_dl_callback_double_19_1_cdecl(), rb_dl_callback_double_19_2_cdecl(), rb_dl_callback_double_19_3_cdecl(), rb_dl_callback_double_19_4_cdecl(), rb_dl_callback_double_1_0_cdecl(), rb_dl_callback_double_1_1_cdecl(), rb_dl_callback_double_1_2_cdecl(), rb_dl_callback_double_1_3_cdecl(), rb_dl_callback_double_1_4_cdecl(), rb_dl_callback_double_2_0_cdecl(), rb_dl_callback_double_2_1_cdecl(), rb_dl_callback_double_2_2_cdecl(), rb_dl_callback_double_2_3_cdecl(), rb_dl_callback_double_2_4_cdecl(), rb_dl_callback_double_3_0_cdecl(), rb_dl_callback_double_3_1_cdecl(), rb_dl_callback_double_3_2_cdecl(), rb_dl_callback_double_3_3_cdecl(), rb_dl_callback_double_3_4_cdecl(), rb_dl_callback_double_4_0_cdecl(), rb_dl_callback_double_4_1_cdecl(), rb_dl_callback_double_4_2_cdecl(), rb_dl_callback_double_4_3_cdecl(), rb_dl_callback_double_4_4_cdecl(), rb_dl_callback_double_5_0_cdecl(), rb_dl_callback_double_5_1_cdecl(), rb_dl_callback_double_5_2_cdecl(), rb_dl_callback_double_5_3_cdecl(), rb_dl_callback_double_5_4_cdecl(), rb_dl_callback_double_6_0_cdecl(), rb_dl_callback_double_6_1_cdecl(), rb_dl_callback_double_6_2_cdecl(), rb_dl_callback_double_6_3_cdecl(), rb_dl_callback_double_6_4_cdecl(), rb_dl_callback_double_7_0_cdecl(), rb_dl_callback_double_7_1_cdecl(), rb_dl_callback_double_7_2_cdecl(), rb_dl_callback_double_7_3_cdecl(), rb_dl_callback_double_7_4_cdecl(), rb_dl_callback_double_8_0_cdecl(), rb_dl_callback_double_8_1_cdecl(), rb_dl_callback_double_8_2_cdecl(), rb_dl_callback_double_8_3_cdecl(), rb_dl_callback_double_8_4_cdecl(), rb_dl_callback_double_9_0_cdecl(), rb_dl_callback_double_9_1_cdecl(), rb_dl_callback_double_9_2_cdecl(), rb_dl_callback_double_9_3_cdecl(), rb_dl_callback_double_9_4_cdecl(), rb_dl_callback_float_0_0_cdecl(), rb_dl_callback_float_0_1_cdecl(), rb_dl_callback_float_0_2_cdecl(), rb_dl_callback_float_0_3_cdecl(), rb_dl_callback_float_0_4_cdecl(), rb_dl_callback_float_10_0_cdecl(), rb_dl_callback_float_10_1_cdecl(), rb_dl_callback_float_10_2_cdecl(), rb_dl_callback_float_10_3_cdecl(), rb_dl_callback_float_10_4_cdecl(), rb_dl_callback_float_11_0_cdecl(), rb_dl_callback_float_11_1_cdecl(), rb_dl_callback_float_11_2_cdecl(), rb_dl_callback_float_11_3_cdecl(), rb_dl_callback_float_11_4_cdecl(), rb_dl_callback_float_12_0_cdecl(), rb_dl_callback_float_12_1_cdecl(), rb_dl_callback_float_12_2_cdecl(), rb_dl_callback_float_12_3_cdecl(), rb_dl_callback_float_12_4_cdecl(), rb_dl_callback_float_13_0_cdecl(), rb_dl_callback_float_13_1_cdecl(), rb_dl_callback_float_13_2_cdecl(), rb_dl_callback_float_13_3_cdecl(), rb_dl_callback_float_13_4_cdecl(), rb_dl_callback_float_14_0_cdecl(), rb_dl_callback_float_14_1_cdecl(), rb_dl_callback_float_14_2_cdecl(), rb_dl_callback_float_14_3_cdecl(), rb_dl_callback_float_14_4_cdecl(), rb_dl_callback_float_15_0_cdecl(), rb_dl_callback_float_15_1_cdecl(), rb_dl_callback_float_15_2_cdecl(), rb_dl_callback_float_15_3_cdecl(), rb_dl_callback_float_15_4_cdecl(), rb_dl_callback_float_16_0_cdecl(), rb_dl_callback_float_16_1_cdecl(), rb_dl_callback_float_16_2_cdecl(), rb_dl_callback_float_16_3_cdecl(), rb_dl_callback_float_16_4_cdecl(), rb_dl_callback_float_17_0_cdecl(), rb_dl_callback_float_17_1_cdecl(), rb_dl_callback_float_17_2_cdecl(), rb_dl_callback_float_17_3_cdecl(), rb_dl_callback_float_17_4_cdecl(), rb_dl_callback_float_18_0_cdecl(), rb_dl_callback_float_18_1_cdecl(), rb_dl_callback_float_18_2_cdecl(), rb_dl_callback_float_18_3_cdecl(), rb_dl_callback_float_18_4_cdecl(), rb_dl_callback_float_19_0_cdecl(), rb_dl_callback_float_19_1_cdecl(), rb_dl_callback_float_19_2_cdecl(), rb_dl_callback_float_19_3_cdecl(), rb_dl_callback_float_19_4_cdecl(), rb_dl_callback_float_1_0_cdecl(), rb_dl_callback_float_1_1_cdecl(), rb_dl_callback_float_1_2_cdecl(), rb_dl_callback_float_1_3_cdecl(), rb_dl_callback_float_1_4_cdecl(), rb_dl_callback_float_2_0_cdecl(), rb_dl_callback_float_2_1_cdecl(), rb_dl_callback_float_2_2_cdecl(), rb_dl_callback_float_2_3_cdecl(), rb_dl_callback_float_2_4_cdecl(), rb_dl_callback_float_3_0_cdecl(), rb_dl_callback_float_3_1_cdecl(), rb_dl_callback_float_3_2_cdecl(), rb_dl_callback_float_3_3_cdecl(), rb_dl_callback_float_3_4_cdecl(), rb_dl_callback_float_4_0_cdecl(), rb_dl_callback_float_4_1_cdecl(), rb_dl_callback_float_4_2_cdecl(), rb_dl_callback_float_4_3_cdecl(), rb_dl_callback_float_4_4_cdecl(), rb_dl_callback_float_5_0_cdecl(), rb_dl_callback_float_5_1_cdecl(), rb_dl_callback_float_5_2_cdecl(), rb_dl_callback_float_5_3_cdecl(), rb_dl_callback_float_5_4_cdecl(), rb_dl_callback_float_6_0_cdecl(), rb_dl_callback_float_6_1_cdecl(), rb_dl_callback_float_6_2_cdecl(), rb_dl_callback_float_6_3_cdecl(), rb_dl_callback_float_6_4_cdecl(), rb_dl_callback_float_7_0_cdecl(), rb_dl_callback_float_7_1_cdecl(), rb_dl_callback_float_7_2_cdecl(), rb_dl_callback_float_7_3_cdecl(), rb_dl_callback_float_7_4_cdecl(), rb_dl_callback_float_8_0_cdecl(), rb_dl_callback_float_8_1_cdecl(), rb_dl_callback_float_8_2_cdecl(), rb_dl_callback_float_8_3_cdecl(), rb_dl_callback_float_8_4_cdecl(), rb_dl_callback_float_9_0_cdecl(), rb_dl_callback_float_9_1_cdecl(), rb_dl_callback_float_9_2_cdecl(), rb_dl_callback_float_9_3_cdecl(), rb_dl_callback_float_9_4_cdecl(), rb_num2dbl(), rb_num2long(), rb_num2ulong(), rb_str_format(), time_timespec(), and w_object().

#define RHASH_SIZE | ( |  | hsh | ) | (RHASH(hsh)->tbl->num_entries)

Definition at line 28 of file generator.h.

Referenced by ary2list(), hash2kv(), hash2kv_enc(), hash_equal(), map_charset(), rb_ary_uniq(), rb_ary_uniq_bang(), rb_syck_load_handler(), tk_conv_args(), and w_object().

#define RSTRING_LEN | ( |  | string | ) | RSTRING(string)->len

Definition at line 45 of file generator.h.

Referenced by addrinfo_initialize(), addrinfo_mload(), appendline(), argf_read(), BigDecimal_to_i(), BigDecimal_to_r(), bubblebabble_str_new(), check_pipe_command(), chopped_length(), constant_arg(), convert_encoding(), convert_UTF8_to_JSON(), convert_UTF8_to_JSON_ASCII(), copy_stream_fallback_body(), cParser_initialize(), cState_array_nl_set(), cState_configure(), cState_indent_set(), cState_object_nl_set(), cState_space_before_set(), cState_space_set(), curses_char(), deflate_run(), do_checksum(), do_deflate(), do_inflate(), econv_insert_output(), econv_primitive_convert(), econv_set_replacement(), env_aset(), env_assoc(), env_delete(), env_fetch(), env_has_key(), env_has_value(), env_key(), env_rassoc(), error_print(), eval_string_with_cref(), exc_inspect(), f_format(), fdbm_delete(), fdbm_delete_if(), fdbm_fetch(), fdbm_has_key(), fdbm_has_value(), fdbm_key(), fdbm_store(), fgdbm_has_key(), fgdbm_has_value(), fgdbm_key(), fgdbm_store(), flo_to_s(), fsdbm_delete(), fsdbm_delete_if(), fsdbm_fetch(), fsdbm_has_key(), fsdbm_has_value(), fsdbm_key(), fsdbm_store(), gzfile_calc_crc(), gzfile_read_header(), gzfile_read_more(), gzfile_read_raw_ensure(), gzfile_read_raw_until_zero(), gzfile_reader_rewind(), gzfile_readpartial(), gzreader_gets(), hexencode_str_new(), iconv_conv(), iconv_convert(), iconv_create(), iconv_fail(), iconv_iconv(), iconv_s_convert(), inflate_run(), inspect_errno(), inspect_i(), inspect_int(), inspect_timeval_as_interval(), io_binwrite(), io_encoding_set(), io_fread(), io_getc(), io_reader(), io_ungetbyte(), io_write(), lex_get_str(), load_file_internal(), loaded_feature_path(), month_arg(), moreswitches(), must_not_be_anonymous(), name_err_mesg_to_str(), obj_to_asn1bstr(), obj_to_asn1derstr(), obj_to_asn1str(), ole_val2olevariantdata(), ole_vstr2wc(), ossl_asn1_decode(), ossl_asn1_decode_all(), ossl_asn1_traverse(), ossl_asn1cons_to_der(), ossl_asn1data_to_der(), ossl_bn_initialize(), ossl_cipher_final(), ossl_cipher_init(), ossl_cipher_pkcs5_keyivgen(), ossl_cipher_set_iv(), ossl_cipher_set_key(), ossl_cipher_update(), ossl_digest_update(), ossl_dsa_sign(), ossl_dsa_verify(), ossl_hmac_initialize(), ossl_hmac_s_digest(), ossl_hmac_s_hexdigest(), ossl_hmac_update(), ossl_obj2bio(), ossl_pem_passwd_cb(), ossl_pkey_sign(), ossl_pkey_verify(), ossl_rand_add(), ossl_rand_seed(), ossl_rsa_private_decrypt(), ossl_rsa_private_encrypt(), ossl_rsa_public_decrypt(), ossl_rsa_public_encrypt(), ossl_spki_initialize(), ossl_spki_set_challenge(), ossl_ssl_read_internal(), ossl_ssl_write_internal(), ossl_sslctx_setup(), ossl_x509attr_initialize(), ossl_x509ext_initialize(), ossl_x509ext_set_value(), ossl_x509name_add_entry(), ossl_x509name_initialize(), pack_pack(), pack_unpack(), parse(), parser_here_document(), parser_heredoc_restore(), parser_nextc(), path2class(), path2module(), pipe_open_s(), prepare_getline_args(), qpencode(), r_byte(), r_bytes0(), r_object0(), range_include(), rb_ary_join(), rb_deflate_set_dictionary(), rb_digest_base_update(), rb_digest_instance_digest_length(), rb_digest_instance_equal(), rb_dlptr_s_to_ptr(), rb_econv_open_opts(), rb_econv_str_append(), rb_econv_str_convert(), rb_econv_substr_append(), rb_enc_compatible(), rb_enc_cr_str_buf_cat(), rb_enc_cr_str_copy_for_substr(), rb_enc_str_coderange(), rb_f_getenv(), rb_feature_p(), rb_file_identical_p(), rb_file_join(), rb_file_s_basename(), rb_find_file_ext_safe(), rb_find_file_safe(), rb_gdbm_delete(), rb_gdbm_fetch2(), rb_gdbm_nextkey(), rb_gzfile_set_comment(), rb_gzfile_set_orig_name(), rb_gzreader_ungetc(), rb_gzwriter_write(), rb_hash_fetch_m(), rb_inflate_set_dictionary(), rb_inflate_sync(), rb_intern_str(), rb_io_ctl(), rb_io_getline_1(), rb_io_puts(), rb_io_syswrite(), rb_io_ungetc(), rb_io_write_nonblock(), rb_iseq_disasm(), rb_iseq_disasm_insn(), rb_push_glob(), rb_realpath_internal(), rb_reg_adjust_startpos(), rb_reg_check_preprocess(), rb_reg_error_desc(), rb_reg_initialize(), rb_reg_initialize_m(), rb_reg_initialize_str(), rb_reg_match_post(), rb_reg_prepare_re(), rb_reg_preprocess_dregexp(), rb_reg_quote(), rb_reg_regcomp(), rb_reg_regsub(), rb_reg_search(), rb_str_append(), rb_str_aref(), rb_str_associate(), rb_str_buf_append(), rb_str_bytesize(), rb_str_capitalize_bang(), rb_str_casecmp(), rb_str_chomp_bang(), rb_str_chop_bang(), rb_str_cmp(), rb_str_comparable(), rb_str_concat(), rb_str_count(), rb_str_crypt(), rb_str_delete_bang(), rb_str_derive(), rb_str_drop_bytes(), rb_str_dump(), rb_str_each_byte(), rb_str_each_char(), rb_str_each_codepoint(), rb_str_each_line(), rb_str_empty(), rb_str_encode_ospath(), rb_str_end_with(), rb_str_format(), rb_str_getbyte(), rb_str_hash(), rb_str_hash_cmp(), rb_str_index(), rb_str_justify(), rb_str_lstrip_bang(), rb_str_new_frozen(), rb_str_partition(), rb_str_plus(), rb_str_resize(), rb_str_reverse(), rb_str_reverse_bang(), rb_str_rindex(), rb_str_rpartition(), rb_str_rstrip_bang(), rb_str_scan(), rb_str_setbyte(), rb_str_shared_replace(), rb_str_splice_0(), rb_str_split_m(), rb_str_squeeze_bang(), rb_str_start_with(), rb_str_sub_bang(), rb_str_subseq(), rb_str_substr(), rb_str_succ(), rb_str_sum(), rb_str_times(), rb_str_to_dbl(), rb_str_to_inum(), rb_str_upto(), rb_string_value_cstr(), rb_syck_io_str_read(), rb_w32_conv_from_wstr(), rb_zstream_avail_in(), readline_attempted_completion_function(), realpath_rec(), recvfrom_blocking(), rscheck(), rsock_s_recvfrom(), rsock_s_recvfrom_nonblock(), rsock_send_blocking(), rsock_sendto_blocking(), RUBY_ALIAS_FUNCTION(), scalar(), scan_once(), set_arg0(), sock_s_gethostbyaddr(), sock_s_getnameinfo(), sock_s_unpack_sockaddr_in(), sockopt_bool(), sockopt_int(), sockopt_linger(), str_buf_cat(), str_end_with_asciichar(), str_eql(), str_gsub(), str_make_independent(), str_mod_check(), str_replace(), str_replace_shared(), str_strlen(), str_transcode0(), string_to_c_internal(), string_to_c_strict(), string_to_r_internal(), string_to_r_strict(), strio_each_byte(), strio_each_codepoint(), strio_eof(), strio_extend(), strio_getbyte(), strio_getc(), strio_getline(), strio_putc(), strio_read(), strio_seek(), strio_size(), strio_substr(), strio_truncate(), strio_ungetbyte(), strio_ungetc(), strio_write(), syck_defaultresolver_detect_implicit(), syck_node_type_id_set(), syck_parser_assign_io(), syck_resolver_transfer(), syck_scalar_value_set(), syck_set_ivars(), sym_inspect(), sys_fail2(), syserr_initialize(), time_mload(), time_strftime(), tr_setup_table(), tr_trans(), transcode_loop(), trap_handler(), update_char_offset(), utc_offset_arg(), w_nbyte(), w_object(), w_symbol(), zstream_append_buffer(), zstream_buffer_ungetbyte(), zstream_buffer_ungets(), zstream_discard_input(), zstream_expand_buffer(), zstream_run(), zstream_shift_buffer(), and zstream_sync().

#define RSTRING_PAIR | ( |  | string | ) | RSTRING_PTR(string), RSTRING_LEN(string)

Definition at line 48 of file generator.h.

Referenced by generate_json().

#define RSTRING_PTR | ( |  | string | ) | RSTRING(string)->ptr

Definition at line 42 of file generator.h.

Referenced by addrinfo_initialize(), addrinfo_mload(), appendline(), argf_inplace_mode_set(), argf_next_argv(), argument_error(), autoload_node(), BigDecimal_dump(), BigDecimal_global_new(), BigDecimal_inspect(), BigDecimal_load(), BigDecimal_new(), BigDecimal_split(), BigDecimal_to_f(), BigDecimal_to_s(), bsock_setsockopt(), bubblebabble_str_new(), bugreport_backtrace(), check_dirname(), check_pipe_command(), chopped_length(), coerce_rescue(), constant_arg(), control_frame_dump(), convert_encoding(), convert_UTF8_to_JSON(), convert_UTF8_to_JSON_ASCII(), copy_stream_body(), copy_stream_fallback_body(), cParser_initialize(), cState_array_nl_set(), cState_configure(), cState_indent_set(), cState_object_nl_set(), cState_space_before_set(), cState_space_set(), curses_char(), deflate_run(), dir_chdir(), dir_initialize(), dir_inspect(), dir_s_mkdir(), dir_s_rmdir(), dispose_string(), do_checksum(), do_deflate(), do_inflate(), econv_insert_output(), econv_primitive_convert(), econv_putback(), econv_set_replacement(), env_aset(), env_delete(), env_fetch(), env_has_value(), env_key(), env_rassoc(), env_shift(), error_print(), etc_getgrnam(), etc_getpwnam(), eval_string_with_cref(), expand_include_path(), f_format(), fdbm_delete(), fdbm_delete_if(), fdbm_fetch(), fdbm_has_key(), fdbm_has_value(), fdbm_initialize(), fdbm_key(), fdbm_store(), fgdbm_has_key(), fgdbm_has_value(), fgdbm_initialize(), fgdbm_key(), fgdbm_store(), file_expand_path(), file_s_fnmatch(), flo_to_s(), fsdbm_delete(), fsdbm_delete_if(), fsdbm_fetch(), fsdbm_has_key(), fsdbm_has_value(), fsdbm_initialize(), fsdbm_key(), fsdbm_store(), get_exception_sym2type(), GetVpValue(), gzfile_calc_crc(), gzfile_check_footer(), gzfile_getc(), gzfile_read_header(), gzfile_read_more(), gzfile_read_raw_until_zero(), gzfile_readpartial(), gzreader_gets(), gzreader_skip_linebreaks(), hexencode_str_new(), hist_push(), hist_push_method(), host_str(), iconv_convert(), iconv_create(), iconv_iconv(), inflate_run(), inspect_errno(), inspect_i(), inspect_int(), inspect_obj(), inspect_struct(), inspect_timeval_as_interval(), io_binwrite(), io_binwrite_string(), io_encoding_set(), io_fread(), io_getc(), io_getpartial(), io_ungetbyte(), iseq_build_body(), iseq_compile_each(), iseq_free(), iseq_inspect(), iseq_mark(), iseq_set_sequence(), iseq_set_sequence_stackcaching(), lex_get_str(), load_encoding(), load_ext(), load_file_internal(), make_inspectname(), make_name_for_block(), month_arg(), moreswitches(), mSyslog_open(), must_not_be_anonymous(), name_err_mesg_to_str(), obj_to_asn1bstr(), obj_to_asn1derstr(), obj_to_asn1obj(), obj_to_asn1str(), ole_val2olevariantdata(), ole_vstr2wc(), opt_enc_index(), ossl_asn1_decode(), ossl_asn1_decode_all(), ossl_asn1_traverse(), ossl_asn1cons_to_der(), ossl_asn1data_to_der(), ossl_asn1obj_s_register(), ossl_bn_initialize(), ossl_bn_to_s(), ossl_buf2str(), ossl_cipher_final(), ossl_cipher_init(), ossl_cipher_pkcs5_keyivgen(), ossl_cipher_set_iv(), ossl_cipher_set_key(), ossl_cipher_update(), ossl_config_add_value(), ossl_config_get_value(), ossl_dh_compute_key(), ossl_dh_to_der(), ossl_digest_finish(), ossl_digest_update(), ossl_dsa_sign(), ossl_dsa_to_der(), ossl_dsa_verify(), ossl_hmac_initialize(), ossl_hmac_s_digest(), ossl_hmac_s_hexdigest(), ossl_hmac_update(), ossl_obj2bio(), ossl_pem_passwd_cb(), ossl_pkcs12_to_der(), ossl_pkcs7_to_der(), ossl_pkey_new_from_file(), ossl_pkey_sign(), ossl_pkey_verify(), ossl_rand_add(), ossl_rand_bytes(), ossl_rand_egd(), ossl_rand_egd_bytes(), ossl_rand_load_file(), ossl_rand_pseudo_bytes(), ossl_rand_seed(), ossl_rand_write_file(), ossl_rsa_private_decrypt(), ossl_rsa_private_encrypt(), ossl_rsa_public_decrypt(), ossl_rsa_public_encrypt(), ossl_rsa_to_der(), ossl_spki_initialize(), ossl_spki_set_challenge(), ossl_spki_to_der(), ossl_ssl_read_internal(), ossl_ssl_write_internal(), ossl_sslctx_set_ciphers(), ossl_sslctx_setup(), ossl_x509_new_from_file(), ossl_x509_to_der(), ossl_x509attr_get_value(), ossl_x509attr_initialize(), ossl_x509attr_to_der(), ossl_x509ext_initialize(), ossl_x509ext_set_value(), ossl_x509ext_to_der(), ossl_x509extfactory_create_ext(), ossl_x509name_add_entry(), ossl_x509name_initialize(), ossl_x509name_to_der(), ossl_x509req_to_der(), ossl_x509store_add_file(), ossl_x509store_add_path(), pack_pack(), pack_unpack(), parse(), parser_here_document(), parser_heredoc_restore(), parser_magic_comment(), parser_nextc(), path2class(), path2module(), path_check_0(), pipe_open(), pipe_open_s(), port_str(), print_backtrace(), proc_to_s(), process_options(), push_glob(), qpencode(), r_byte(), r_bytes0(), r_object0(), range_include(), rb_ary_combination(), rb_ary_permutation(), rb_ary_product(), rb_ary_repeated_combination(), rb_ary_repeated_permutation(), rb_big2str0(), rb_check_argv(), rb_check_type(), rb_class2name(), rb_deflate_set_dictionary(), rb_digest_base_finish(), rb_digest_base_update(), rb_econv_open_opts(), rb_econv_substr_append(), rb_enc_cr_str_copy_for_substr(), rb_enc_str_coderange(), rb_enc_uint_chr(), rb_enc_vsprintf(), rb_exec_fillarg(), rb_f_eval(), rb_f_getenv(), rb_f_kill(), rb_f_load(), rb_f_spawn(), rb_f_test(), rb_feature_p(), rb_feature_provided(), rb_file_chmod(), rb_file_chown(), rb_file_identical_p(), rb_file_join(), rb_file_lstat(), rb_file_s_atime(), rb_file_s_basename(), rb_file_s_ctime(), rb_file_s_ftype(), rb_file_s_lstat(), rb_file_s_mtime(), rb_file_s_size(), rb_file_s_stat(), rb_find_file_ext_safe(), rb_find_file_safe(), rb_gdbm_delete(), rb_gdbm_fetch2(), rb_gdbm_nextkey(), rb_get_expanded_load_path(), rb_gzfile_set_comment(), rb_gzfile_set_orig_name(), rb_gzreader_getbyte(), rb_gzreader_ungetc(), rb_gzwriter_write(), rb_hash_fetch_m(), rb_home_dir(), rb_id2name(), rb_inflate_set_dictionary(), rb_inflate_sync(), rb_intern_str(), rb_invalid_str(), rb_io_ctl(), rb_io_getline_1(), rb_io_getline_fast(), rb_io_inspect(), rb_io_reopen(), rb_io_sysread(), rb_io_syswrite(), rb_io_ungetc(), rb_io_write_nonblock(), rb_iseq_disasm(), rb_iseq_disasm_insn(), rb_load_internal(), rb_method_entry_make(), rb_mod_autoload(), rb_nkf_convert(), rb_nkf_guess(), rb_nkf_putchar(), rb_path_to_class(), rb_proc_exec_n(), rb_push_glob(), rb_random_bytes(), rb_realpath_internal(), rb_reg_adjust_startpos(), rb_reg_check_preprocess(), rb_reg_error_desc(), rb_reg_initialize(), rb_reg_initialize_str(), rb_reg_prepare_re(), rb_reg_preprocess_dregexp(), rb_reg_quote(), rb_reg_raise(), rb_reg_regcomp(), rb_reg_regsub(), rb_reg_search(), rb_require_safe(), rb_run_exec_options_err(), rb_sourcefile(), rb_spawn_process(), rb_stat_init(), rb_str_append(), rb_str_buf_append(), rb_str_capitalize_bang(), rb_str_casecmp(), rb_str_chomp_bang(), rb_str_chop(), rb_str_chop_bang(), rb_str_clear(), rb_str_cmp(), rb_str_concat(), rb_str_count(), rb_str_crypt(), rb_str_delete_bang(), rb_str_derive(), rb_str_downcase_bang(), rb_str_drop_bytes(), rb_str_dump(), rb_str_each_byte(), rb_str_each_char(), rb_str_each_codepoint(), rb_str_each_line(), rb_str_end_with(), rb_str_format(), rb_str_getbyte(), rb_str_hash(), rb_str_hash_cmp(), rb_str_index(), rb_str_index_m(), rb_str_inspect(), rb_str_justify(), rb_str_lstrip_bang(), rb_str_new_frozen(), rb_str_offset(), rb_str_ord(), rb_str_plus(), rb_str_reverse(), rb_str_reverse_bang(), rb_str_rindex(), rb_str_rindex_m(), rb_str_rstrip_bang(), rb_str_scan(), rb_str_set_len(), rb_str_setbyte(), rb_str_shared_replace(), rb_str_splice(), rb_str_splice_0(), rb_str_split_m(), rb_str_squeeze_bang(), rb_str_start_with(), rb_str_sub_bang(), rb_str_sublen(), rb_str_subseq(), rb_str_substr(), rb_str_succ(), rb_str_sum(), rb_str_swapcase_bang(), rb_str_times(), rb_str_to_dbl(), rb_str_to_inum(), rb_str_upcase_bang(), rb_str_upto(), rb_str_vcatf(), rb_string_value_cstr(), rb_string_value_ptr(), rb_syck_io_str_read(), rb_sysopen(), rb_thread_current_status(), rb_throw_obj(), rb_to_id(), rb_w32_conv_from_wstr(), read_all(), readline_attempted_completion_function(), readline_readline(), realpath_rec(), recvfrom_blocking(), reg_compile_gen(), reg_fragment_check_gen(), rscheck(), rsock_bsock_send(), rsock_s_recvfrom_nonblock(), rsock_send_blocking(), rsock_sendto_blocking(), rsock_sockaddr_string_value_ptr(), ruby__sfvwrite(), RUBY_ALIAS_FUNCTION(), ruby_init_loadpath_safe(), run_exec_open(), scan_once(), search_required(), set_arg0(), set_file_encoding(), set_option_encoding_once(), setup_exception(), sock_bind(), sock_connect(), sock_connect_nonblock(), sock_s_gethostbyaddr(), sock_s_getnameinfo(), sockopt_bool(), sockopt_int(), sockopt_linger(), str_buf_cat(), str_discard(), str_encode_associate(), str_end_with_asciichar(), str_eql(), str_gsub(), str_make_independent(), str_mod_check(), str_new(), str_replace(), str_replace_shared(), str_strlen(), str_transcode0(), str_transcoding_resize(), strio_each_byte(), strio_each_codepoint(), strio_extend(), strio_getbyte(), strio_getc(), strio_getline(), strio_putc(), strio_read(), strio_substr(), strio_truncate(), strio_ungetbyte(), strio_ungetc(), strio_write(), strip_glibc_option(), strscan_inspect(), syck_defaultresolver_detect_implicit(), syck_node_type_id_set(), syck_parser_assign_io(), syck_resolver_tagurize(), syck_scalar_value_set(), syck_set_ivars(), sym_inspect(), sys_fail2(), syserr_initialize(), syslog_write(), sysopen_func(), thread_initialize(), time_mload(), time_strftime(), to_encoding(), tr_setup_table(), tr_trans(), transcode_loop(), trap_handler(), update_char_offset(), utc_offset_arg(), vm_backtrace_push(), vm_check_if_namespace(), VpAlloc(), w_object(), w_symbol(), zstream_append_buffer(), zstream_buffer_ungetbyte(), zstream_buffer_ungets(), zstream_discard_input(), zstream_expand_buffer(), zstream_expand_buffer_into(), zstream_run(), zstream_shift_buffer(), and zstream_sync().

#define UNI_MAX_BMP (UTF32)0x0000FFFF

Definition at line 86 of file generator.h.

Referenced by convert_UTF8_to_JSON_ASCII().

#define UNI_MAX_LEGAL_UTF32 (UTF32)0x0010FFFF

Definition at line 89 of file generator.h.

#define UNI_MAX_UTF16 (UTF32)0x0010FFFF

Definition at line 87 of file generator.h.

Referenced by convert_UTF8_to_JSON_ASCII().

#define UNI_MAX_UTF32 (UTF32)0x7FFFFFFF

Definition at line 88 of file generator.h.

#define UNI_REPLACEMENT_CHAR (UTF32)0x0000FFFD

Definition at line 85 of file generator.h.

Referenced by convert_UTF8_to_JSON_ASCII(), and unescape_unicode().

#define UNI_STRICT_CONVERSION 1

Definition at line 79 of file generator.h.

#define UNI_SUR_HIGH_END (UTF32)0xDBFF

Definition at line 92 of file generator.h.

#define UNI_SUR_HIGH_START (UTF32)0xD800

Definition at line 91 of file generator.h.

Referenced by convert_UTF8_to_JSON_ASCII(), and json_string_unescape().

#define UNI_SUR_LOW_END (UTF32)0xDFFF

Definition at line 94 of file generator.h.

Referenced by convert_UTF8_to_JSON_ASCII().

#define UNI_SUR_LOW_START (UTF32)0xDC00

Definition at line 93 of file generator.h.

Referenced by convert_UTF8_to_JSON_ASCII().

## Typedef Documentation

typedef struct FBufferStruct FBuffer

typedef struct JSON_Generator_StateStruct JSON_Generator_State

typedef unsigned short UTF16

Definition at line 82 of file generator.h.

typedef unsigned long UTF32

Definition at line 81 of file generator.h.

typedef unsigned char UTF8

Definition at line 83 of file generator.h.

## Function Documentation

static void convert_UTF8_to_JSON | ( | FBuffer * | buffer,
|  | VALUE | string
| ) |  | `[static]`

static void convert_UTF8_to_JSON_ASCII | ( | FBuffer * | buffer,
|  | VALUE | string
| ) |  | `[static]`

static VALUE cState_allow_nan_p | ( | VALUE | self | ) | `[static]`

static VALUE cState_array_nl | ( | VALUE | self | ) | `[static]`

static VALUE cState_array_nl_set | ( | VALUE | self,
|  | VALUE | array_nl
| ) |  | `[static]`

static VALUE cState_ascii_only_p | ( | VALUE | self | ) | `[static]`

static VALUE cState_configure | ( | VALUE | self,
|  | VALUE | opts
| ) |  | `[static]`

static VALUE cState_from_state_s | ( | VALUE | self,
|  | VALUE | opts
| ) |  | `[static]`

static VALUE cState_generate | ( | VALUE | self,
|  | VALUE | obj
| ) |  | `[static]`

static VALUE cState_indent | ( | VALUE | self | ) | `[static]`

static VALUE cState_indent_set | ( | VALUE | self,
|  | VALUE | indent
| ) |  | `[static]`

static VALUE cState_initialize | ( | int | argc,
|  | VALUE * | argv,
|  | VALUE | self
| ) |  | `[static]`

static VALUE cState_max_nesting | ( | VALUE | self | ) | `[static]`

static VALUE cState_max_nesting_set | ( | VALUE | self,
|  | VALUE | depth
| ) |  | `[static]`

static VALUE cState_object_nl | ( | VALUE | self | ) | `[static]`

static VALUE cState_object_nl_set | ( | VALUE | self,
|  | VALUE | object_nl
| ) |  | `[static]`

static VALUE cState_partial_generate | ( | VALUE | self,
|  | VALUE | obj,
|  | VALUE | depth
| ) |  | `[static]`

static VALUE cState_s_allocate | ( | VALUE | klass | ) | `[static]`

static VALUE cState_space | ( | VALUE | self | ) | `[static]`

static VALUE cState_space_before | ( | VALUE | self | ) | `[static]`

static VALUE cState_space_before_set | ( | VALUE | self,
|  | VALUE | space_before
| ) |  | `[static]`

static VALUE cState_space_set | ( | VALUE | self,
|  | VALUE | space
| ) |  | `[static]`

static VALUE cState_to_h | ( | VALUE | self | ) | `[static]`

static FBuffer* fbuffer_alloc | ( |  | ) | `[static]`

static FBuffer* fbuffer_alloc_with_length | ( | unsigned | initial_length | ) | `[static]`

static void fbuffer_append | ( | FBuffer * | fb,
|  | const char * | newstr,
|  | unsigned int | len
| ) |  | `[static]`

static void fbuffer_append_char | ( | FBuffer * | fb,
|  | char | newchr
| ) |  | `[static]`

static void fbuffer_append_long | ( | FBuffer * | fb,
|  | long | number
| ) |  | `[static]`

static void fbuffer_clear | ( | FBuffer * | fb | ) | `[static]`

static FBuffer* fbuffer_dup | ( | FBuffer * | fb | ) | `[static]`

static void fbuffer_free | ( | FBuffer * | fb | ) | `[static]`

static void fbuffer_free_only_buffer | ( | FBuffer * | fb | ) | `[static]`

static char* fstrndup | ( | const char * | ptr,
|  | int | len
| ) |  | `[static]`

static void generate_json | ( | FBuffer * | buffer,
|  | VALUE | Vstate,
|  | JSON_Generator_State * | state,
|  | VALUE | obj,
|  | long | depth
| ) |  | `[static]`

static unsigned char isLegalUTF8 | ( | const UTF8 * | source,
|  | int | length
| ) |  | `[static]`

static VALUE mArray_to_json | ( | int | argc,
|  | VALUE * | argv,
|  | VALUE | self
| ) |  | `[static]`

static VALUE mFalseClass_to_json | ( | int | argc,
|  | VALUE * | argv,
|  | VALUE | self
| ) |  | `[static]`

static VALUE mFloat_to_json | ( | int | argc,
|  | VALUE * | argv,
|  | VALUE | self
| ) |  | `[static]`

static VALUE mHash_to_json | ( | int | argc,
|  | VALUE * | argv,
|  | VALUE | self
| ) |  | `[static]`

static VALUE mInteger_to_json | ( | int | argc,
|  | VALUE * | argv,
|  | VALUE | self
| ) |  | `[static]`

static VALUE mNilClass_to_json | ( | int | argc,
|  | VALUE * | argv,
|  | VALUE | self
| ) |  | `[static]`

static VALUE mObject_to_json | ( | int | argc,
|  | VALUE * | argv,
|  | VALUE | self
| ) |  | `[static]`

static VALUE mString_Extend_json_create | ( | VALUE | self,
|  | VALUE | o
| ) |  | `[static]`

static VALUE mString_included_s | ( | VALUE | self,
|  | VALUE | modul
| ) |  | `[static]`

static VALUE mString_to_json | ( | int | argc,
|  | VALUE * | argv,
|  | VALUE | self
| ) |  | `[static]`

static VALUE mString_to_json_raw | ( | int | argc,
|  | VALUE * | argv,
|  | VALUE | self
| ) |  | `[static]`

static VALUE mString_to_json_raw_object | ( | VALUE | self | ) | `[static]`

static VALUE mTrueClass_to_json | ( | int | argc,
|  | VALUE * | argv,
|  | VALUE | self
| ) |  | `[static]`

static JSON_Generator_State* State_allocate | ( |  | ) | `[static]`

static void State_free | ( | JSON_Generator_State * | state | ) | `[static]`

static void unicode_escape | ( | char * | buf,
|  | UTF16 | character
| ) |  | `[static]`

static void unicode_escape_to_buffer | ( | FBuffer * | buffer,
|  | char | buf[6],
|  | UTF16 | character
| ) |  | `[static]`

## Variable Documentation

const UTF32 halfBase = 0x0010000UL`[static]`

Definition at line 98 of file generator.h.

Referenced by convert_UTF8_to_JSON_ASCII().

const UTF32 halfMask = 0x3FFUL`[static]`

Definition at line 99 of file generator.h.

Referenced by convert_UTF8_to_JSON_ASCII().

const int halfShift = 10`[static]`

Definition at line 96 of file generator.h.

Referenced by convert_UTF8_to_JSON_ASCII().