|
gwenhywfar 5.12.0
|
#include "./json_p.h"#include <gwenhywfar/misc.h>#include <gwenhywfar/debug.h>#include <gwenhywfar/text.h>#include <gwenhywfar/path.h>#include <ctype.h>
Go to the source code of this file.
Macros | |
| #define | DISABLE_DEBUGLOG |
|
static |
Definition at line 154 of file json.c.
References _findByTypeAndData(), GWEN_JSON_ELEMTYPE_ARRAY, GWEN_JSON_ELEMTYPE_KEY, GWEN_JSON_ELEMTYPE_OBJECT, GWEN_JsonElement_GetData(), GWEN_JsonElement_GetType(), and NULL.
Referenced by _findByTypeAndData(), GWEN_JsonElement_FindFirstByTypeAndData(), and GWEN_JsonElement_FindNextByTypeAndData().


| void * _handlePath | ( | const char * | entry, |
| void * | data, | ||
| int | idx, | ||
| GWEN_UNUSED uint32_t | flags ) |
Definition at line 193 of file json.c.
References GWEN_JSON_ELEMTYPE_KEY, GWEN_JsonElement_FindByIdxTypeAndData(), GWEN_UNUSED, and NULL.

|
static |
| GWEN_JSON_ELEM * GWEN_JsonElement_FindByIdxTypeAndData | ( | const GWEN_JSON_ELEM * | jeSearch, |
| int | t, | ||
| const char * | s, | ||
| int | idx ) |
Definition at line 132 of file json.c.
References GWEN_JsonElement_FindFirstByTypeAndData(), GWEN_JsonElement_FindNextByTypeAndData(), and NULL.
Referenced by _handlePath().


| GWEN_JSON_ELEM * GWEN_JsonElement_FindFirstByTypeAndData | ( | const GWEN_JSON_ELEM * | je, |
| int | t, | ||
| const char * | s ) |
Definition at line 112 of file json.c.
References _findByTypeAndData().
Referenced by GWEN_JsonElement_FindByIdxTypeAndData().


| GWEN_JSON_ELEM * GWEN_JsonElement_FindNextByTypeAndData | ( | const GWEN_JSON_ELEM * | je, |
| int | t, | ||
| const char * | s ) |
Definition at line 122 of file json.c.
References _findByTypeAndData().
Referenced by GWEN_JsonElement_FindByIdxTypeAndData().


| void GWEN_JsonElement_free | ( | GWEN_JSON_ELEM * | je | ) |
Definition at line 63 of file json.c.
References GWEN_FREE_OBJECT, and GWEN_TREE2_FINI.
Referenced by _readArray(), and _readObject().

| const char * GWEN_JsonElement_GetData | ( | const GWEN_JSON_ELEM * | je | ) |
Definition at line 92 of file json.c.
References NULL.
Referenced by _findByTypeAndData(), and GWEN_JsonElement_DumpToBuffer().

| GWEN_JSON_ELEM * GWEN_JsonElement_GetElementByPath | ( | GWEN_JSON_ELEM * | je, |
| const char * | path, | ||
| uint32_t | flags ) |
Definition at line 147 of file json.c.
References _handlePath(), and GWEN_Path_HandleWithIdx().
Referenced by test_json().


| int GWEN_JsonElement_GetType | ( | const GWEN_JSON_ELEM * | je | ) |
Definition at line 75 of file json.c.
References GWEN_JSON_ELEMTYPE_UNKNOWN.
Referenced by _findByTypeAndData(), and GWEN_JsonElement_DumpToBuffer().

| GWEN_JSON_ELEM * GWEN_JsonElement_new | ( | int | t, |
| const char * | sData ) |
Definition at line 50 of file json.c.
References GWEN_JsonElement_SetData(), GWEN_JsonElement_SetType(), GWEN_NEW_OBJECT, and GWEN_TREE2_INIT.
Referenced by _readArray(), _readObject(), and _readValue().


| void GWEN_JsonElement_SetData | ( | GWEN_JSON_ELEM * | je, |
| const char * | s ) |
Definition at line 101 of file json.c.
References NULL.
Referenced by GWEN_JsonElement_new().

| void GWEN_JsonElement_SetType | ( | GWEN_JSON_ELEM * | je, |
| int | t ) |
Definition at line 84 of file json.c.
Referenced by GWEN_JsonElement_new().

| GWEN_TREE2_FUNCTIONS | ( | GWEN_JSON_ELEM | , |
| GWEN_JsonElement | ) |