|
Xonotic QuakeC
The free, fast arena FPS with crisp movement and a wide array of weapons
|
|
Go to the source code of this file.
Macros | |
| #define | JSON_BEGIN() |
| #define | JSON_END() |
| #define | JSON_FAIL(reason) |
Functions | |
| ERASEABLE bool | _json_parse_array () |
| ERASEABLE bool | _json_parse_false () |
| ERASEABLE bool | _json_parse_float () |
| ERASEABLE bool | _json_parse_int () |
| ERASEABLE bool | _json_parse_members () |
| ERASEABLE bool | _json_parse_null () |
| ERASEABLE bool | _json_parse_number () |
| ERASEABLE bool | _json_parse_object () |
| Parse a json object. | |
| ERASEABLE bool | _json_parse_pair () |
| ERASEABLE bool | _json_parse_string (bool add) |
| ERASEABLE bool | _json_parse_true () |
| ERASEABLE bool | _json_parse_value () |
| ERASEABLE void | json_del (int buf) |
| ERASEABLE void | json_dump (int buf) |
| ERASEABLE string | json_get (int buf, string key) |
| ERASEABLE int | json_parse (string in, bool() func) |
| STRING_ITERATOR (_json, string_null, 0) | |
| TEST (json, Parse) | |
Variables | |
| int | _json_buffer |
| Store interleaved keys/values in a string buffer. | |
| int | _json_keys |
| Current keys. | |
| string | _json_ns |
| Current namespace. | |
| string | _json_temp |
| Last read string. | |
| #define JSON_BEGIN | ( | ) |
Definition at line 12 of file json.qc.
Referenced by _json_parse_array(), _json_parse_false(), _json_parse_float(), _json_parse_int(), _json_parse_members(), _json_parse_null(), _json_parse_number(), _json_parse_object(), _json_parse_pair(), _json_parse_string(), _json_parse_true(), and _json_parse_value().
| #define JSON_END | ( | ) |
Definition at line 14 of file json.qc.
Referenced by _json_parse_array(), _json_parse_false(), _json_parse_float(), _json_parse_int(), _json_parse_members(), _json_parse_null(), _json_parse_number(), _json_parse_object(), _json_parse_pair(), _json_parse_string(), _json_parse_true(), and _json_parse_value().
| #define JSON_FAIL | ( | reason | ) |
Definition at line 13 of file json.qc.
Referenced by _json_parse_array(), _json_parse_false(), _json_parse_float(), _json_parse_int(), _json_parse_members(), _json_parse_null(), _json_parse_number(), _json_parse_object(), _json_parse_pair(), _json_parse_string(), _json_parse_true(), and _json_parse_value().
Definition at line 71 of file json.qc.
References _json_buffer, _json_ns, _json_parse_value(), ftos(), JSON_BEGIN, JSON_END, JSON_FAIL, strcat(), STRING_ITERATOR_GET, STRING_ITERATOR_NEXT, STRING_ITERATOR_PEEK, and WITH.
Referenced by _json_parse_value(), and PlayerStats_PlayerBasic_Handler().
Definition at line 139 of file json.qc.
References _json_buffer, JSON_BEGIN, JSON_END, JSON_FAIL, and STRING_ITERATOR_GET.
Referenced by _json_parse_value().
Definition at line 216 of file json.qc.
References _json_buffer, chr2str, JSON_BEGIN, JSON_END, JSON_FAIL, strcat(), STRING_ITERATOR_GET, and STRING_ITERATOR_UNGET.
Referenced by _json_parse_number().
Definition at line 242 of file json.qc.
References _json_buffer, chr2str, ftos(), JSON_BEGIN, JSON_END, JSON_FAIL, stof(), strcat(), STRING_ITERATOR_GET, and STRING_ITERATOR_UNGET.
Referenced by _json_parse_number().
Definition at line 33 of file json.qc.
References _json_parse_pair(), JSON_BEGIN, JSON_END, JSON_FAIL, STRING_ITERATOR_NEXT, and STRING_ITERATOR_PEEK.
Referenced by _json_parse_object().
Definition at line 153 of file json.qc.
References _json_buffer, JSON_BEGIN, JSON_END, JSON_FAIL, and STRING_ITERATOR_GET.
Referenced by _json_parse_value().
Definition at line 207 of file json.qc.
References _json_parse_float(), _json_parse_int(), JSON_BEGIN, JSON_END, and JSON_FAIL.
Referenced by _json_parse_value().
Parse a json object.
Definition at line 21 of file json.qc.
References _json_buffer, _json_keys, _json_parse_members(), JSON_BEGIN, JSON_END, JSON_FAIL, STRING_ITERATOR_GET, and WITH.
Referenced by _json_parse_value(), MX_Messages_(), MX_Sync_(), and TEST().
Definition at line 51 of file json.qc.
References _json_buffer, _json_keys, _json_ns, _json_parse_string(), _json_parse_value(), _json_temp, cons(), JSON_BEGIN, JSON_END, JSON_FAIL, strcat(), STRING_ITERATOR_GET, and WITH.
Referenced by _json_parse_members().
Definition at line 166 of file json.qc.
References _json_buffer, _json_temp, chr2str, JSON_BEGIN, JSON_END, JSON_FAIL, strcat(), STRING_ITERATOR_GET, and STRING_ITERATOR_UNGET.
Referenced by _json_parse_pair(), and _json_parse_value().
Definition at line 126 of file json.qc.
References _json_buffer, JSON_BEGIN, JSON_END, JSON_FAIL, and STRING_ITERATOR_GET.
Referenced by _json_parse_value().
Definition at line 111 of file json.qc.
References _json_parse_array(), _json_parse_false(), _json_parse_null(), _json_parse_number(), _json_parse_object(), _json_parse_string(), _json_parse_true(), JSON_BEGIN, JSON_END, and JSON_FAIL.
Referenced by _json_parse_array(), and _json_parse_pair().
Definition at line 323 of file json.qc.
References string_null.
Referenced by MX_Handle(), MX_Messages_(), MX_Sync_(), and PlayerStats_PlayerBasic_Handler().
Definition at line 266 of file json.qc.
References _json_buffer, buf_create, LABEL, strcat(), STRING_ITERATOR_SET, strstrofs, and substring().
Referenced by MX_Messages_(), MX_Sync_(), PlayerStats_PlayerBasic_Handler(), and TEST().
| STRING_ITERATOR | ( | _json | , |
| string_null | , | ||
| 0 | ) |
References string_null.
| TEST | ( | json | , |
| Parse | ) |
Definition at line 348 of file json.qc.
References _json_parse_object(), EXPECT_NE, json_dump(), json_parse(), print(), and SUCCEED.
| int _json_buffer |
Store interleaved keys/values in a string buffer.
Definition at line 7 of file json.qc.
Referenced by _json_parse_array(), _json_parse_false(), _json_parse_float(), _json_parse_int(), _json_parse_null(), _json_parse_object(), _json_parse_pair(), _json_parse_string(), _json_parse_true(), and json_parse().
| int _json_keys |
Current keys.
Definition at line 10 of file json.qc.
Referenced by _json_parse_object(), and _json_parse_pair().
| string _json_ns |
Current namespace.
Definition at line 9 of file json.qc.
Referenced by _json_parse_array(), and _json_parse_pair().
| string _json_temp |
Last read string.
Definition at line 8 of file json.qc.
Referenced by _json_parse_pair(), and _json_parse_string().