Ruby 1.9.3p327(2012-11-10revision37606)
Functions | Variables
ext/json/generator/generator.c File Reference
#include "generator.h"
Include dependency graph for generator.c:

Go to the source code of this file.

Functions

static unsigned char isLegalUTF8 (const UTF8 *source, unsigned long 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 char * fstrndup (const char *ptr, unsigned long len)
static FBufferfbuffer_alloc ()
static FBufferfbuffer_alloc_with_length (unsigned long initial_length)
static void fbuffer_free (FBuffer *fb)
static void fbuffer_clear (FBuffer *fb)
static void fbuffer_inc_capa (FBuffer *fb, unsigned long requested)
static void fbuffer_append (FBuffer *fb, const char *newstr, unsigned long len)
static void fbuffer_append_str (FBuffer *fb, VALUE str)
static void fbuffer_append_char (FBuffer *fb, char newchr)
static void freverse (char *start, char *end)
static long fltoa (long number, char *buf)
static void fbuffer_append_long (FBuffer *fb, long number)
static FBufferfbuffer_dup (FBuffer *fb)
static VALUE mHash_to_json (int argc, VALUE *argv, VALUE self)
static VALUE mArray_to_json (int argc, VALUE *argv, VALUE self)
static VALUE mFixnum_to_json (int argc, VALUE *argv, VALUE self)
static VALUE mBignum_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_StateState_allocate ()
static VALUE cState_s_allocate (VALUE klass)
static VALUE cState_configure (VALUE self, VALUE opts)
static VALUE cState_to_h (VALUE self)
static VALUE cState_aref (VALUE self, VALUE name)
static void generate_json_object (FBuffer *buffer, VALUE Vstate, JSON_Generator_State *state, VALUE obj)
static void generate_json_array (FBuffer *buffer, VALUE Vstate, JSON_Generator_State *state, VALUE obj)
static void generate_json_string (FBuffer *buffer, VALUE Vstate, JSON_Generator_State *state, VALUE obj)
static void generate_json_null (FBuffer *buffer, VALUE Vstate, JSON_Generator_State *state, VALUE obj)
static void generate_json_false (FBuffer *buffer, VALUE Vstate, JSON_Generator_State *state, VALUE obj)
static void generate_json_true (FBuffer *buffer, VALUE Vstate, JSON_Generator_State *state, VALUE obj)
static void generate_json_fixnum (FBuffer *buffer, VALUE Vstate, JSON_Generator_State *state, VALUE obj)
static void generate_json_bignum (FBuffer *buffer, VALUE Vstate, JSON_Generator_State *state, VALUE obj)
static void generate_json_float (FBuffer *buffer, VALUE Vstate, JSON_Generator_State *state, VALUE obj)
static void generate_json (FBuffer *buffer, VALUE Vstate, JSON_Generator_State *state, VALUE obj)
static FBuffercState_prepare_buffer (VALUE self)
static VALUE fbuffer_to_s (FBuffer *fb)
static VALUE cState_partial_generate (VALUE self, VALUE obj)
static VALUE cState_generate (VALUE self, VALUE obj)
static VALUE cState_initialize (int argc, VALUE *argv, VALUE self)
static VALUE cState_init_copy (VALUE obj, VALUE orig)
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_check_circular_p (VALUE self)
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)
static VALUE cState_quirks_mode_p (VALUE self)
static VALUE cState_quirks_mode_set (VALUE self, VALUE enable)
static VALUE cState_depth (VALUE self)
static VALUE cState_depth_set (VALUE self, VALUE depth)
void Init_generator ()

Variables

static VALUE mJSON
static VALUE mExt
static VALUE mGenerator
static VALUE cState
static VALUE mGeneratorMethods
static VALUE mObject
static VALUE mHash
static VALUE mArray
static VALUE mFixnum
static VALUE mBignum
static VALUE mFloat
static VALUE mString
static VALUE mString_Extend
static VALUE mTrueClass
static VALUE mFalseClass
static VALUE mNilClass
static VALUE eGeneratorError
static VALUE eNestingError
static VALUE CRegexp_MULTILINE
static VALUE CJSON_SAFE_STATE_PROTOTYPE
static VALUE i_SAFE_STATE_PROTOTYPE
static ID i_to_s
static ID i_to_json
static ID i_new
static ID i_indent
static ID i_space
static ID i_space_before
static ID i_object_nl
static ID i_array_nl
static ID i_max_nesting
static ID i_allow_nan
static ID i_ascii_only
static ID i_quirks_mode
static ID i_pack
static ID i_unpack
static ID i_create_id
static ID i_extend
static ID i_key_p
static ID i_aref
static ID i_send
static ID i_respond_to_p
static ID i_match
static ID i_keys
static ID i_depth
static ID i_dup
static const char trailingBytesForUTF8 [256]
static const UTF32 offsetsFromUTF8 [6]

Function Documentation

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

Definition at line 223 of file generator.c.

References buf, fbuffer_append(), len, NULL, RSTRING_LEN, RSTRING_PTR, and unicode_escape().

Referenced by generate_json_string().

static void convert_UTF8_to_JSON_ASCII ( FBuffer buffer,
VALUE  string 
) [static]
static VALUE cState_allow_nan_p ( VALUE  self) [static]

Definition at line 1290 of file generator.c.

References GET_STATE, Qfalse, and Qtrue.

Referenced by Init_generator().

static VALUE cState_aref ( VALUE  self,
VALUE  name 
) [static]

Definition at line 734 of file generator.c.

References GET_STATE, i_respond_to_p, i_send, Qnil, rb_funcall(), and RTEST.

Referenced by Init_generator().

static VALUE cState_array_nl ( VALUE  self) [static]

Definition at line 1216 of file generator.c.

References GET_STATE, and rb_str_new2().

Referenced by Init_generator().

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

Definition at line 1227 of file generator.c.

References Check_Type, GET_STATE, len, NULL, Qnil, RSTRING_LEN, RSTRING_PTR, ruby_xfree(), strdup, and T_STRING.

Referenced by Init_generator().

static VALUE cState_ascii_only_p ( VALUE  self) [static]

Definition at line 1302 of file generator.c.

References GET_STATE, Qfalse, and Qtrue.

Referenced by Init_generator().

static VALUE cState_check_circular_p ( VALUE  self) [static]

Definition at line 1253 of file generator.c.

References GET_STATE, Qfalse, and Qtrue.

Referenced by Init_generator().

static VALUE cState_configure ( VALUE  self,
VALUE  opts 
) [static]
static VALUE cState_depth ( VALUE  self) [static]

Definition at line 1336 of file generator.c.

References GET_STATE, and LONG2FIX.

Referenced by Init_generator().

static VALUE cState_depth_set ( VALUE  self,
VALUE  depth 
) [static]

Definition at line 1348 of file generator.c.

References Check_Type, FIX2LONG, GET_STATE, and T_FIXNUM.

Referenced by Init_generator().

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]

Definition at line 1069 of file generator.c.

References GET_STATE, and rb_str_new2().

Referenced by Init_generator().

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

Definition at line 1080 of file generator.c.

References Check_Type, GET_STATE, len, NULL, Qnil, RSTRING_LEN, RSTRING_PTR, ruby_xfree(), strdup, and T_STRING.

Referenced by Init_generator().

static VALUE cState_init_copy ( VALUE  obj,
VALUE  orig 
) [static]
static VALUE cState_initialize ( int  argc,
VALUE argv,
VALUE  self 
) [static]

Definition at line 1007 of file generator.c.

References cState_configure(), GET_STATE, NIL_P, and rb_scan_args().

Referenced by Init_generator().

static VALUE cState_max_nesting ( VALUE  self) [static]

Definition at line 1265 of file generator.c.

References GET_STATE, and LONG2FIX.

Referenced by Init_generator().

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

Definition at line 1277 of file generator.c.

References Check_Type, FIX2LONG, GET_STATE, and T_FIXNUM.

Referenced by Init_generator().

static VALUE cState_object_nl ( VALUE  self) [static]

Definition at line 1180 of file generator.c.

References GET_STATE, and rb_str_new2().

Referenced by Init_generator().

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

Definition at line 1192 of file generator.c.

References Check_Type, GET_STATE, len, NULL, Qnil, RSTRING_LEN, RSTRING_PTR, ruby_xfree(), strdup, and T_STRING.

Referenced by Init_generator().

static VALUE cState_partial_generate ( VALUE  self,
VALUE  obj 
) [static]

Definition at line 958 of file generator.c.

References cState_prepare_buffer(), fbuffer_to_s(), generate_json(), and GET_STATE.

Referenced by cState_generate(), and mObject_to_json().

static FBuffer* cState_prepare_buffer ( VALUE  self) [static]
static VALUE cState_quirks_mode_p ( VALUE  self) [static]

Definition at line 1313 of file generator.c.

References GET_STATE, Qfalse, and Qtrue.

Referenced by Init_generator().

static VALUE cState_quirks_mode_set ( VALUE  self,
VALUE  enable 
) [static]

Definition at line 1324 of file generator.c.

References GET_STATE, Qnil, and RTEST.

Referenced by Init_generator().

static VALUE cState_s_allocate ( VALUE  klass) [static]

Definition at line 613 of file generator.c.

References Data_Wrap_Struct, NULL, State_allocate(), and State_free().

Referenced by Init_generator().

static VALUE cState_space ( VALUE  self) [static]

Definition at line 1106 of file generator.c.

References GET_STATE, and rb_str_new2().

Referenced by Init_generator().

static VALUE cState_space_before ( VALUE  self) [static]

Definition at line 1143 of file generator.c.

References GET_STATE, and rb_str_new2().

Referenced by Init_generator().

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

Definition at line 1154 of file generator.c.

References Check_Type, GET_STATE, len, NULL, Qnil, RSTRING_LEN, RSTRING_PTR, ruby_xfree(), strdup, and T_STRING.

Referenced by Init_generator().

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

Definition at line 1118 of file generator.c.

References Check_Type, GET_STATE, len, NULL, Qnil, RSTRING_LEN, RSTRING_PTR, ruby_xfree(), strdup, and T_STRING.

Referenced by Init_generator().

static VALUE cState_to_h ( VALUE  self) [static]
static FBuffer* fbuffer_alloc ( ) [static]

Definition at line 297 of file generator.c.

References ALLOC, and FBUFFER_INITIAL_LENGTH.

Referenced by cState_prepare_buffer(), and fbuffer_dup().

static FBuffer* fbuffer_alloc_with_length ( unsigned long  initial_length) [static]

Definition at line 305 of file generator.c.

References ALLOC, and assert.

Referenced by cState_prepare_buffer(), and fbuffer_dup().

static void fbuffer_append ( FBuffer fb,
const char *  newstr,
unsigned long  len 
) [static]
static void fbuffer_append_char ( FBuffer fb,
char  newchr 
) [static]
static void fbuffer_append_long ( FBuffer fb,
long  number 
) [static]

Definition at line 391 of file generator.c.

References buf, fbuffer_append(), fltoa(), and len.

Referenced by generate_json_fixnum().

static void fbuffer_append_str ( FBuffer fb,
VALUE  str 
) [static]
static void fbuffer_clear ( FBuffer fb) [static]

Definition at line 321 of file generator.c.

References FBufferStruct::len.

Referenced by cState_prepare_buffer().

static FBuffer* fbuffer_dup ( FBuffer fb) [static]
static void fbuffer_free ( FBuffer fb) [static]
static void fbuffer_inc_capa ( FBuffer fb,
unsigned long  requested 
) [static]
static VALUE fbuffer_to_s ( FBuffer fb) [static]

Definition at line 950 of file generator.c.

References fbuffer_free(), FBUFFER_PAIR, FORCE_UTF8, rb_str_new(), and result.

Referenced by cState_partial_generate().

static long fltoa ( long  number,
char *  buf 
) [static]

Definition at line 378 of file generator.c.

References buf, and freverse().

Referenced by fbuffer_append_long().

static void freverse ( char *  start,
char *  end 
) [static]

Definition at line 369 of file generator.c.

Referenced by fltoa().

static char* fstrndup ( const char *  ptr,
unsigned long  len 
) [static]

Definition at line 287 of file generator.c.

References ALLOC_N, NULL, and result.

Referenced by cState_configure(), and cState_init_copy().

static void generate_json ( FBuffer buffer,
VALUE  Vstate,
JSON_Generator_State state,
VALUE  obj 
) [static]
static void generate_json_array ( FBuffer buffer,
VALUE  Vstate,
JSON_Generator_State state,
VALUE  obj 
) [static]
static void generate_json_bignum ( FBuffer buffer,
VALUE  Vstate,
JSON_Generator_State state,
VALUE  obj 
) [static]

Definition at line 865 of file generator.c.

References fbuffer_append_str(), i_to_s, and rb_funcall().

Referenced by generate_json().

static void generate_json_false ( FBuffer buffer,
VALUE  Vstate,
JSON_Generator_State state,
VALUE  obj 
) [static]

Definition at line 850 of file generator.c.

References fbuffer_append().

Referenced by generate_json().

static void generate_json_fixnum ( FBuffer buffer,
VALUE  Vstate,
JSON_Generator_State state,
VALUE  obj 
) [static]

Definition at line 860 of file generator.c.

References fbuffer_append_long(), and FIX2LONG.

Referenced by generate_json().

static void generate_json_float ( FBuffer buffer,
VALUE  Vstate,
JSON_Generator_State state,
VALUE  obj 
) [static]
static void generate_json_null ( FBuffer buffer,
VALUE  Vstate,
JSON_Generator_State state,
VALUE  obj 
) [static]

Definition at line 845 of file generator.c.

References fbuffer_append().

Referenced by generate_json().

static void generate_json_object ( FBuffer buffer,
VALUE  Vstate,
JSON_Generator_State state,
VALUE  obj 
) [static]
static void generate_json_string ( FBuffer buffer,
VALUE  Vstate,
JSON_Generator_State state,
VALUE  obj 
) [static]
static void generate_json_true ( FBuffer buffer,
VALUE  Vstate,
JSON_Generator_State state,
VALUE  obj 
) [static]

Definition at line 855 of file generator.c.

References fbuffer_append().

Referenced by generate_json().

void Init_generator ( )

Definition at line 1358 of file generator.c.

References CJSON_SAFE_STATE_PROTOTYPE, CRegexp_MULTILINE, cState, cState_allow_nan_p(), cState_aref(), cState_array_nl(), cState_array_nl_set(), cState_ascii_only_p(), cState_check_circular_p(), cState_configure(), cState_depth(), cState_depth_set(), cState_from_state_s(), cState_generate(), cState_indent(), cState_indent_set(), cState_init_copy(), cState_initialize(), cState_max_nesting(), cState_max_nesting_set(), cState_object_nl(), cState_object_nl_set(), cState_quirks_mode_p(), cState_quirks_mode_set(), cState_s_allocate(), cState_space(), cState_space_before(), cState_space_before_set(), cState_space_set(), cState_to_h(), eGeneratorError, eNestingError, i_allow_nan, i_aref, i_array_nl, i_ascii_only, i_create_id, i_depth, i_dup, i_extend, i_indent, i_key_p, i_keys, i_match, i_max_nesting, i_new, i_object_nl, i_pack, i_quirks_mode, i_respond_to_p, i_SAFE_STATE_PROTOTYPE, i_send, i_space, i_space_before, i_to_json, i_to_s, i_unpack, mArray, mArray_to_json(), mBignum, mBignum_to_json(), mExt, mFalseClass, mFalseClass_to_json(), mFixnum, mFixnum_to_json(), mFloat, mFloat_to_json(), mGenerator, mGeneratorMethods, mHash, mHash_to_json(), mJSON, mNilClass, mNilClass_to_json(), mObject, mObject_to_json(), mString, mString_Extend, mString_Extend_json_create(), mString_included_s(), mString_to_json(), mString_to_json_raw(), mString_to_json_raw_object(), mTrueClass, mTrueClass_to_json(), Qnil, rb_cObject, rb_const_get(), rb_cRegexp, rb_define_alias(), rb_define_alloc_func(), rb_define_class_under(), rb_define_method(), rb_define_module(), rb_define_module_under(), rb_define_singleton_method(), rb_funcall(), rb_intern, rb_path2class(), rb_require(), and rb_str_new2().

static unsigned char isLegalUTF8 ( const UTF8 source,
unsigned long  length 
) [static]

Definition at line 77 of file generator.c.

Referenced by convert_UTF8_to_JSON_ASCII().

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

Definition at line 445 of file generator.c.

References GENERATE_JSON.

Referenced by Init_generator().

static VALUE mBignum_to_json ( int  argc,
VALUE argv,
VALUE  self 
) [static]

Definition at line 464 of file generator.c.

References GENERATE_JSON.

Referenced by Init_generator().

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

Definition at line 561 of file generator.c.

References GENERATE_JSON.

Referenced by Init_generator().

static VALUE mFixnum_to_json ( int  argc,
VALUE argv,
VALUE  self 
) [static]

Definition at line 454 of file generator.c.

References GENERATE_JSON.

Referenced by Init_generator().

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

Definition at line 474 of file generator.c.

References GENERATE_JSON.

Referenced by Init_generator().

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

Definition at line 432 of file generator.c.

References GENERATE_JSON.

Referenced by Init_generator(), and mString_to_json_raw().

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

Definition at line 571 of file generator.c.

References GENERATE_JSON.

Referenced by Init_generator().

static VALUE mObject_to_json ( int  argc,
VALUE argv,
VALUE  self 
) [static]
static VALUE mString_Extend_json_create ( VALUE  self,
VALUE  o 
) [static]

Definition at line 538 of file generator.c.

References Check_Type, i_pack, rb_funcall(), rb_hash_aref(), rb_str_new2(), and T_HASH.

Referenced by Init_generator().

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

Definition at line 484 of file generator.c.

References i_extend, mString_Extend, rb_funcall(), and result.

Referenced by Init_generator().

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

Definition at line 496 of file generator.c.

References GENERATE_JSON.

Referenced by Init_generator().

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

Definition at line 525 of file generator.c.

References Check_Type, mHash_to_json(), mString_to_json_raw_object(), and T_HASH.

Referenced by Init_generator().

static VALUE mString_to_json_raw_object ( VALUE  self) [static]
static VALUE mTrueClass_to_json ( int  argc,
VALUE argv,
VALUE  self 
) [static]

Definition at line 551 of file generator.c.

References GENERATE_JSON.

Referenced by Init_generator().

static JSON_Generator_State* State_allocate ( ) [static]

Definition at line 606 of file generator.c.

References ALLOC, and MEMZERO.

Referenced by cState_s_allocate().

static void State_free ( JSON_Generator_State state) [static]
static void unicode_escape ( char *  buf,
UTF16  character 
) [static]

Definition at line 104 of file generator.c.

Referenced by convert_UTF8_to_JSON(), and unicode_escape_to_buffer().

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

Definition at line 116 of file generator.c.

References fbuffer_append(), and unicode_escape().

Referenced by convert_UTF8_to_JSON_ASCII().


Variable Documentation

Definition at line 8 of file generator.c.

Referenced by cState_from_state_s(), and Init_generator().

Definition at line 8 of file generator.c.

Referenced by cState_generate(), and Init_generator().

Definition at line 8 of file generator.c.

Referenced by Init_generator(), and mObject_to_json().

Definition at line 8 of file generator.c.

Referenced by cState_generate(), generate_json_float(), and Init_generator().

Definition at line 14 of file generator.c.

Referenced by Init_generator(), Init_parser(), and JSON_parse_object().

Definition at line 14 of file generator.c.

Referenced by cState_configure(), cState_to_h(), and Init_generator().

Definition at line 14 of file generator.c.

Referenced by cState_configure(), cState_to_h(), and Init_generator().

Definition at line 14 of file generator.c.

Referenced by cState_configure(), cState_to_h(), and Init_generator().

Definition at line 14 of file generator.c.

Referenced by cState_from_state_s(), and Init_generator().

Definition at line 14 of file generator.c.

Referenced by Init_generator(), and mString_included_s().

Definition at line 14 of file generator.c.

Referenced by cState_configure(), cState_to_h(), and Init_generator().

Definition at line 14 of file generator.c.

Referenced by Init_generator(), and Init_parser().

Definition at line 14 of file generator.c.

Referenced by generate_json_object(), and Init_generator().

Definition at line 14 of file generator.c.

Referenced by cState_generate(), Init_generator(), Init_parser(), and match_i().

Definition at line 14 of file generator.c.

Referenced by cState_from_state_s(), and Init_generator().

Definition at line 14 of file generator.c.

Referenced by cState_configure(), cState_to_h(), and Init_generator().

Definition at line 14 of file generator.c.

Referenced by Init_generator(), and mString_Extend_json_create().

Definition at line 14 of file generator.c.

Referenced by cState_aref(), and Init_generator().

Definition at line 8 of file generator.c.

Referenced by cState_from_state_s(), and Init_generator().

Definition at line 14 of file generator.c.

Referenced by cState_aref(), and Init_generator().

Definition at line 14 of file generator.c.

Referenced by cState_configure(), cState_to_h(), and Init_generator().

Definition at line 14 of file generator.c.

Referenced by cState_configure(), cState_to_h(), and Init_generator().

Definition at line 14 of file generator.c.

Referenced by generate_json(), and Init_generator().

ID i_to_s [static]

Definition at line 14 of file generator.c.

Referenced by Init_generator(), and mString_to_json_raw_object().

Definition at line 8 of file generator.c.

Referenced by Init_generator().

Definition at line 8 of file generator.c.

Referenced by Init_generator().

Definition at line 8 of file generator.c.

Referenced by Init_generator(), and Init_parser().

Definition at line 8 of file generator.c.

Referenced by Init_generator().

Definition at line 8 of file generator.c.

Referenced by Init_generator().

Definition at line 8 of file generator.c.

Referenced by Init_generator().

Definition at line 8 of file generator.c.

Referenced by Init_generator().

Definition at line 8 of file generator.c.

Referenced by Init_generator().

Definition at line 8 of file generator.c.

Referenced by Init_generator().

VALUE mJSON [static]

Definition at line 8 of file generator.c.

Referenced by cState_from_state_s(), Init_generator(), and mString_to_json_raw_object().

Definition at line 8 of file generator.c.

Referenced by Init_generator().

Definition at line 8 of file generator.c.

Referenced by Init_generator().

Definition at line 8 of file generator.c.

Referenced by Init_generator().

Definition at line 8 of file generator.c.

Referenced by Init_generator(), and mString_included_s().

Definition at line 8 of file generator.c.

Referenced by Init_generator().

const UTF32 offsetsFromUTF8[6] [static]
Initial value:
 { 0x00000000UL, 0x00003080UL, 0x000E2080UL,
    0x03C82080UL, 0xFA082080UL, 0x82082080UL }

Definition at line 64 of file generator.c.

Referenced by convert_UTF8_to_JSON_ASCII().

const char trailingBytesForUTF8[256] [static]
Initial value:
 {
    0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
    0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
    0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
    0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
    0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
    0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
    1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1, 1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,
    2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2, 3,3,3,3,3,3,3,3,4,4,4,4,5,5,5,5
}

Definition at line 48 of file generator.c.

Referenced by convert_UTF8_to_JSON_ASCII().