#include <math.h>
#include <ctype.h>
#include "ruby.h"
#include "ruby/re.h"
Go to the source code of this file.
|
#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 |
|
◆ GENERATE_JSON
#define GENERATE_JSON |
( |
|
type | ) |
|
Value: VALUE Vstate; \
JSON_Generator_State *state;
\ Vstate = cState_from_state_s(cState, Vstate); \
buffer = cState_prepare_buffer(Vstate); \
generate_json_##type(buffer, Vstate, state, self); \
return fbuffer_to_s(buffer)
int rb_scan_args(int argc, const VALUE *argv, const char *fmt,...)
Definition at line 86 of file generator.h.
◆ GET_STATE
#define GET_STATE |
( |
|
self | ) |
|
Value: GET_STATE_TO(self, state)
Definition at line 82 of file generator.h.
◆ GET_STATE_TO
◆ NEW_TYPEDDATA_WRAPPER
#define NEW_TYPEDDATA_WRAPPER 1 |
◆ option_given_p
◆ rb_intern_str
◆ rb_obj_instance_variables
#define rb_obj_instance_variables |
( |
|
object | ) |
rb_funcall(object, rb_intern("instance_variables"), 0) |
◆ UNI_MAX_BMP
#define UNI_MAX_BMP (UTF32)0x0000FFFF |
◆ UNI_MAX_LEGAL_UTF32
#define UNI_MAX_LEGAL_UTF32 (UTF32)0x0010FFFF |
◆ UNI_MAX_UTF16
#define UNI_MAX_UTF16 (UTF32)0x0010FFFF |
◆ UNI_MAX_UTF32
#define UNI_MAX_UTF32 (UTF32)0x7FFFFFFF |
◆ UNI_REPLACEMENT_CHAR
#define UNI_REPLACEMENT_CHAR (UTF32)0x0000FFFD |
◆ UNI_STRICT_CONVERSION
#define UNI_STRICT_CONVERSION 1 |
◆ UNI_SUR_HIGH_END
#define UNI_SUR_HIGH_END (UTF32)0xDBFF |
◆ UNI_SUR_HIGH_START
#define UNI_SUR_HIGH_START (UTF32)0xD800 |
◆ UNI_SUR_LOW_END
#define UNI_SUR_LOW_END (UTF32)0xDFFF |
◆ UNI_SUR_LOW_START
#define UNI_SUR_LOW_START (UTF32)0xDC00 |
◆ JSON_Generator_State
◆ UTF16
typedef unsigned short UTF16 |
◆ UTF32
typedef unsigned long UTF32 |
◆ UTF8
typedef unsigned char UTF8 |