
Go to the source code of this file.
Macros | |
| #define | ALNUM(c) (_charclass[(unsigned char)(c)] >= 2) |
| #define | ALPHA(c) (_charclass[(unsigned char)(c)] == 3) |
| #define | CCOLON 0x3a /* ':' */ |
| #define | CCOMMA 0x2c /* ',' */ |
| #define | CQUOTE 0x22 /* '"' */ |
| #define | LCBRAC 0x7b /* '{' */ |
| #define | LSBRAC 0x5b /* '[' */ |
| #define | PJSON_KEY_FINAL_CHUNK_TYPE PJSON_KEY_END |
| #define | PJSON_VALUE_FINAL_CHUNK_TYPE PJSON_VALUE_END |
| #define | RCBRAC 0x7d /* '}' */ |
| #define | RSBRAC 0x5d /* ']' */ |
| #define | TOKEN_CB(_type, _ns, _current_too) TOKEN_CB_CALL(_type, _ns, _current_too, 0) |
| #define | TOKEN_CB_CALL(type, _ns, _current_too, _final) |
| #define | TOKEN_CB_FINAL(_type, _ns, _current_too) TOKEN_CB_CALL(_type##_FINAL_CHUNK_TYPE, _ns, _current_too, 1) |
| #define | WHITESPACE(c) (_charclass[(unsigned char)(c)] == 1) |
Enumerations | |
| enum | pstate_e { ST_TEXT, ST_KEY, ST_KEY_BODY, ST_COLON, ST_VALUE, ST_VALUE_BODY, ST_ARRAY_VALUE, ST_ARRAY_VALUE_BODY, ST_END } |
Functions | |
| ssize_t | pjson_parse (int *stateContext, const void *jsonbuf, size_t size, pjson_callback_f *cb, void *key) |
Variables | |
| static const int | _charclass [256] |
| #define ALNUM | ( | c | ) | (_charclass[(unsigned char)(c)] >= 2) |
Definition at line 34 of file jer_support.c.
| #define ALPHA | ( | c | ) | (_charclass[(unsigned char)(c)] == 3) |
Definition at line 35 of file jer_support.c.
| #define CCOLON 0x3a /* ':' */ |
Definition at line 38 of file jer_support.c.
| #define CCOMMA 0x2c /* ',' */ |
Definition at line 44 of file jer_support.c.
| #define CQUOTE 0x22 /* '"' */ |
Definition at line 41 of file jer_support.c.
| #define LCBRAC 0x7b /* '{' */ |
Definition at line 39 of file jer_support.c.
| #define LSBRAC 0x5b /* '[' */ |
Definition at line 42 of file jer_support.c.
| #define PJSON_KEY_FINAL_CHUNK_TYPE PJSON_KEY_END |
Definition at line 69 of file jer_support.c.
| #define PJSON_VALUE_FINAL_CHUNK_TYPE PJSON_VALUE_END |
Definition at line 70 of file jer_support.c.
| #define RCBRAC 0x7d /* '}' */ |
Definition at line 40 of file jer_support.c.
| #define RSBRAC 0x5d /* ']' */ |
Definition at line 43 of file jer_support.c.
| #define TOKEN_CB | ( | _type, | |
| _ns, | |||
| _current_too | |||
| ) | TOKEN_CB_CALL(_type, _ns, _current_too, 0) |
Definition at line 66 of file jer_support.c.
| #define TOKEN_CB_CALL | ( | type, | |
| _ns, | |||
| _current_too, | |||
| _final | |||
| ) |
Definition at line 47 of file jer_support.c.
| #define TOKEN_CB_FINAL | ( | _type, | |
| _ns, | |||
| _current_too | |||
| ) | TOKEN_CB_CALL(_type##_FINAL_CHUNK_TYPE, _ns, _current_too, 1) |
Definition at line 72 of file jer_support.c.
| #define WHITESPACE | ( | c | ) | (_charclass[(unsigned char)(c)] == 1) |
Definition at line 33 of file jer_support.c.
| enum pstate_e |
| Enumerator | |
|---|---|
| ST_TEXT | |
| ST_KEY | |
| ST_KEY_BODY | |
| ST_COLON | |
| ST_VALUE | |
| ST_VALUE_BODY | |
| ST_ARRAY_VALUE | |
| ST_ARRAY_VALUE_BODY | |
| ST_END | |
Definition at line 11 of file jer_support.c.
| ssize_t pjson_parse | ( | int * | stateContext, |
| const void * | jsonbuf, | ||
| size_t | size, | ||
| pjson_callback_f * | cb, | ||
| void * | key | ||
| ) |
Definition at line 79 of file jer_support.c.
|
static |
Definition at line 23 of file jer_support.c.