|
gwenhywfar 5.14.1
|
#include "./json_p.h"#include "./json_read.h"#include <gwenhywfar/misc.h>#include <gwenhywfar/debug.h>#include <gwenhywfar/text.h>#include <ctype.h>
Go to the source code of this file.
Macros | |
| #define | DISABLE_DEBUGLOG |
Functions | |
| static GWEN_JSON_ELEM * | _readArray (const char *s, const char **next) |
| static int | _readKey (const char *s, GWEN_BUFFER *buf, const char **next) |
| static GWEN_JSON_ELEM * | _readObject (const char *s, const char **next) |
| static int | _readQuotedToken (const char *s, GWEN_BUFFER *buf, const char **next) |
| static int | _readSimpleValueAndReturnType (const char *s, GWEN_BUFFER *buf, const char **next) |
| static int | _readTokenUntilChar (const char *s, GWEN_BUFFER *buf, int c, const char **next) |
| static GWEN_JSON_ELEM * | _readValue (const char *s, const char **next) |
| GWEN_JSON_ELEM * | GWEN_JsonElement_fromString (const char *s) |
| #define DISABLE_DEBUGLOG |
Definition at line 28 of file json_read.c.
|
static |
Definition at line 138 of file json_read.c.
References _readValue(), DBG_INFO, GWEN_JSON_ELEMTYPE_ARRAY, GWEN_JsonElement_free(), GWEN_JsonElement_new(), GWEN_LOGDOMAIN, and NULL.
Referenced by _readValue().


|
static |
Definition at line 180 of file json_read.c.
References _readQuotedToken(), DBG_INFO, GWEN_ERROR_BAD_DATA, GWEN_ERROR_NO_DATA, and GWEN_LOGDOMAIN.
Referenced by _readObject().


|
static |
Definition at line 76 of file json_read.c.
References _readKey(), _readValue(), DBG_INFO, GWEN_Buffer_free(), GWEN_Buffer_GetStart(), GWEN_Buffer_new(), GWEN_Buffer_Reset(), GWEN_JSON_ELEMTYPE_KEY, GWEN_JSON_ELEMTYPE_OBJECT, GWEN_JsonElement_free(), GWEN_JsonElement_new(), GWEN_LOGDOMAIN, and NULL.
Referenced by _readValue(), and GWEN_JsonElement_fromString().


|
static |
Definition at line 357 of file json_read.c.
References GWEN_Buffer_AppendByte().
Referenced by _readKey(), and _readSimpleValueAndReturnType().


|
static |
Definition at line 269 of file json_read.c.
References _readQuotedToken(), _readTokenUntilChar(), DBG_INFO, GWEN_Buffer_GetPos(), GWEN_Buffer_GetStart(), GWEN_ERROR_BAD_DATA, GWEN_ERROR_NO_DATA, GWEN_JSON_ELEMTYPE_BOOL, GWEN_JSON_ELEMTYPE_NULL, GWEN_JSON_ELEMTYPE_NUM, GWEN_JSON_ELEMTYPE_STRING, GWEN_JSON_ELEMTYPE_UNKNOWN, and GWEN_LOGDOMAIN.
Referenced by _readValue().


|
static |
Definition at line 324 of file json_read.c.
References GWEN_Buffer_AppendByte(), and NULL.
Referenced by _readSimpleValueAndReturnType().


|
static |
Definition at line 222 of file json_read.c.
References _readArray(), _readObject(), _readSimpleValueAndReturnType(), DBG_INFO, GWEN_Buffer_free(), GWEN_Buffer_GetStart(), GWEN_Buffer_new(), GWEN_JsonElement_new(), GWEN_LOGDOMAIN, and NULL.
Referenced by _readArray(), and _readObject().


| GWEN_JSON_ELEM * GWEN_JsonElement_fromString | ( | const char * | s | ) |
Definition at line 53 of file json_read.c.
References _readObject(), DBG_INFO, GWEN_LOGDOMAIN, and NULL.
Referenced by test_json().

