TwiceAsNice  2019-02-18
Macros | Functions
gason.cpp File Reference
#include "gason.h"
#include <cstdlib>
Include dependency graph for gason.cpp:

Macros

#define JSON_ZONE_SIZE   4096
 
#define JSON_STACK_SIZE   32
 
#define XX(no, str)
 

Functions

const char * jsonStrError (int err)
 
static bool isspace (char c)
 
static bool isdelim (char c)
 
static bool isdigit (char c)
 
static bool isxdigit (char c)
 
static int char2int (char c)
 
static double string2double (char *s, char **endptr)
 
static JsonNodeinsertAfter (JsonNode *tail, JsonNode *node)
 
static JsonValue listToValue (JsonTag tag, JsonNode *tail)
 
int jsonParse (char *s, char **endptr, JsonValue *value, JsonAllocator &allocator)
 

Macro Definition Documentation

◆ JSON_STACK_SIZE

#define JSON_STACK_SIZE   32

◆ JSON_ZONE_SIZE

#define JSON_ZONE_SIZE   4096

◆ XX

#define XX (   no,
  str 
)
Value:
case JSON_##no: \
return str;
str
Definition: PupilGeneratorTest.py:379

Function Documentation

◆ char2int()

static int char2int ( char  c)
inlinestatic

◆ insertAfter()

static JsonNode* insertAfter ( JsonNode tail,
JsonNode node 
)
inlinestatic

◆ isdelim()

static bool isdelim ( char  c)
inlinestatic

◆ isdigit()

static bool isdigit ( char  c)
inlinestatic

◆ isspace()

static bool isspace ( char  c)
inlinestatic

◆ isxdigit()

static bool isxdigit ( char  c)
inlinestatic

◆ jsonParse()

int jsonParse ( char *  s,
char **  endptr,
JsonValue value,
JsonAllocator allocator 
)

◆ jsonStrError()

const char* jsonStrError ( int  err)

◆ listToValue()

static JsonValue listToValue ( JsonTag  tag,
JsonNode tail 
)
inlinestatic

◆ string2double()

static double string2double ( char *  s,
char **  endptr 
)
static