XDK API  3.6.0
Documentation
Functions
jsmn.c File Reference
#include <stdlib.h>
#include "jsmn.h"
+ Include dependency graph for jsmn.c:

Functions

static jsmntok_tjsmn_alloc_token (jsmn_parser *parser, jsmntok_t *tokens, size_t num_tokens)
 
static void jsmn_fill_token (jsmntok_t *token, jsmntype_t type, int start, int end)
 
void jsmn_init (jsmn_parser *parser)
 
int jsmn_parse (jsmn_parser *parser, const char *js, size_t len, jsmntok_t *tokens, unsigned int num_tokens)
 
static int jsmn_parse_primitive (jsmn_parser *parser, const char *js, size_t len, jsmntok_t *tokens, size_t num_tokens)
 
static int jsmn_parse_string (jsmn_parser *parser, const char *js, size_t len, jsmntok_t *tokens, size_t num_tokens)
 

Function Documentation

static jsmntok_t* jsmn_alloc_token ( jsmn_parser parser,
jsmntok_t tokens,
size_t  num_tokens 
)
static

Allocates a fresh unused token from the token pull.

+ Here is the caller graph for this function:

static void jsmn_fill_token ( jsmntok_t token,
jsmntype_t  type,
int  start,
int  end 
)
static

Fills token type and boundaries.

+ Here is the caller graph for this function:

void jsmn_init ( jsmn_parser parser)

Creates a new parser based over a given buffer with an array of tokens available.

int jsmn_parse ( jsmn_parser parser,
const char *  js,
size_t  len,
jsmntok_t tokens,
unsigned int  num_tokens 
)

Parse JSON string and fill tokens.

+ Here is the call graph for this function:

static int jsmn_parse_primitive ( jsmn_parser parser,
const char *  js,
size_t  len,
jsmntok_t tokens,
size_t  num_tokens 
)
static

Fills next available token with JSON primitive.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static int jsmn_parse_string ( jsmn_parser parser,
const char *  js,
size_t  len,
jsmntok_t tokens,
size_t  num_tokens 
)
static

Filsl next token with JSON string.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:


All rights reserved. The use is subject to the XDK SDK EULA by Bosch Connected Devices and Solutions GmbH.
This documentation file has been automatically generated on Thu Mar 14 2019 19:12:47 by doxygen 1.8.8