FTEQW
Documentation of the FTE engine source tree.
json.c File Reference

Functions

void JSON_Destroy (json_t *t)
 
double JSON_ReadFloat (json_t *t, double fallback)
 
unsigned int utf8_encode (void *out, unsigned int unicode, int maxlen)
 
size_t JSON_ReadBody (json_t *t, char *out, size_t outsize)
 
json_tJSON_ParseNode (json_t *t, const char *namestart, const char *nameend, const char *json, int *jsonpos, int jsonlen)
 
json_tJSON_Parse (const char *json)
 
json_tJSON_FindChild (json_t *t, const char *child)
 
json_tJSON_GetIndexed (json_t *t, unsigned int idx)
 
json_tJSON_FindIndexedChild (json_t *t, const char *child, unsigned int idx)
 
qboolean JSON_Equals (json_t *t, const char *child, const char *expected)
 
quintptr_t JSON_GetUInteger (json_t *t, const char *child, unsigned int fallback)
 
qintptr_t JSON_GetInteger (json_t *t, const char *child, int fallback)
 
qintptr_t JSON_GetIndexedInteger (json_t *t, unsigned int idx, int fallback)
 
double JSON_GetFloat (json_t *t, const char *child, double fallback)
 
double JSON_GetIndexedFloat (json_t *t, unsigned int idx, double fallback)
 
const char * JSON_GetString (json_t *t, const char *child, char *buffer, size_t buffersize, const char *fallback)
 

Function Documentation

◆ JSON_Destroy()

void JSON_Destroy ( json_t t)

◆ JSON_Equals()

qboolean JSON_Equals ( json_t t,
const char *  child,
const char *  expected 
)

◆ JSON_FindChild()

json_t * JSON_FindChild ( json_t t,
const char *  child 
)

◆ JSON_FindIndexedChild()

json_t * JSON_FindIndexedChild ( json_t t,
const char *  child,
unsigned int  idx 
)

◆ JSON_GetFloat()

double JSON_GetFloat ( json_t t,
const char *  child,
double  fallback 
)

◆ JSON_GetIndexed()

json_t * JSON_GetIndexed ( json_t t,
unsigned int  idx 
)

◆ JSON_GetIndexedFloat()

double JSON_GetIndexedFloat ( json_t t,
unsigned int  idx,
double  fallback 
)

◆ JSON_GetIndexedInteger()

qintptr_t JSON_GetIndexedInteger ( json_t t,
unsigned int  idx,
int  fallback 
)

◆ JSON_GetInteger()

qintptr_t JSON_GetInteger ( json_t t,
const char *  child,
int  fallback 
)

◆ JSON_GetString()

const char * JSON_GetString ( json_t t,
const char *  child,
char *  buffer,
size_t  buffersize,
const char *  fallback 
)

◆ JSON_GetUInteger()

quintptr_t JSON_GetUInteger ( json_t t,
const char *  child,
unsigned int  fallback 
)

◆ JSON_Parse()

json_t * JSON_Parse ( const char *  json)

◆ JSON_ParseNode()

json_t * JSON_ParseNode ( json_t t,
const char *  namestart,
const char *  nameend,
const char *  json,
int jsonpos,
int  jsonlen 
)

◆ JSON_ReadBody()

size_t JSON_ReadBody ( json_t t,
char *  out,
size_t  outsize 
)

◆ JSON_ReadFloat()

double JSON_ReadFloat ( json_t t,
double  fallback 
)

◆ utf8_encode()

unsigned int utf8_encode ( void out,
unsigned int  unicode,
int  maxlen 
)