Ruby
2.7.2p137(2020-10-01revision5445e0435260b449decf2ac16f9d09bae3cafe72)
|
Go to the source code of this file.
Data Structures | |
struct | JSON_Generator_StateStruct |
Macros | |
#define | rb_intern_str(string) SYM2ID(rb_str_intern(string)) |
#define | rb_obj_instance_variables(object) rb_funcall(object, rb_intern("instance_variables"), 0) |
#define | option_given_p(opts, key) RTEST(rb_funcall(opts, i_key_p, 1, key)) |
#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_TO(self, state) TypedData_Get_Struct(self, JSON_Generator_State, &JSON_Generator_State_type, state) |
#define | GET_STATE(self) |
#define | GENERATE_JSON(type) |
#define | NEW_TYPEDDATA_WRAPPER 1 |
Typedefs | |
typedef unsigned long | UTF32 |
typedef unsigned short | UTF16 |
typedef unsigned char | UTF8 |
typedef struct JSON_Generator_StateStruct | JSON_Generator_State |
#define GENERATE_JSON | ( | type | ) |
Definition at line 86 of file generator.h.
#define GET_STATE | ( | self | ) |
Definition at line 82 of file generator.h.
#define GET_STATE_TO | ( | self, | |
state | |||
) | TypedData_Get_Struct(self, JSON_Generator_State, &JSON_Generator_State_type, state) |
Definition at line 79 of file generator.h.
#define NEW_TYPEDDATA_WRAPPER 1 |
Definition at line 165 of file generator.h.
#define option_given_p | ( | opts, | |
key | |||
) | RTEST(rb_funcall(opts, i_key_p, 1, key)) |
Definition at line 23 of file generator.h.
#define rb_intern_str | ( | string | ) | SYM2ID(rb_str_intern(string)) |
Definition at line 16 of file generator.h.
#define rb_obj_instance_variables | ( | object | ) | rb_funcall(object, rb_intern("instance_variables"), 0) |
Definition at line 20 of file generator.h.
#define UNI_MAX_BMP (UTF32)0x0000FFFF |
Definition at line 34 of file generator.h.
#define UNI_MAX_LEGAL_UTF32 (UTF32)0x0010FFFF |
Definition at line 37 of file generator.h.
#define UNI_MAX_UTF16 (UTF32)0x0010FFFF |
Definition at line 35 of file generator.h.
#define UNI_MAX_UTF32 (UTF32)0x7FFFFFFF |
Definition at line 36 of file generator.h.
#define UNI_REPLACEMENT_CHAR (UTF32)0x0000FFFD |
Definition at line 33 of file generator.h.
#define UNI_STRICT_CONVERSION 1 |
Definition at line 27 of file generator.h.
#define UNI_SUR_HIGH_END (UTF32)0xDBFF |
Definition at line 40 of file generator.h.
#define UNI_SUR_HIGH_START (UTF32)0xD800 |
Definition at line 39 of file generator.h.
#define UNI_SUR_LOW_END (UTF32)0xDFFF |
Definition at line 42 of file generator.h.
#define UNI_SUR_LOW_START (UTF32)0xDC00 |
Definition at line 41 of file generator.h.
typedef struct JSON_Generator_StateStruct JSON_Generator_State |
Definition at line 30 of file generator.h.
Definition at line 29 of file generator.h.
Definition at line 31 of file generator.h.