Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of AWS-test by
jsmn.c File Reference
Implementation of the JSMN (Jasmine) JSON parser. More...
Go to the source code of this file.
Functions | |
| static jsmntok_t * | jsmn_alloc_token (jsmn_parser *parser, jsmntok_t *tokens, size_t num_tokens) |
| Allocates a fresh unused token from the token pull. | |
| static void | jsmn_fill_token (jsmntok_t *token, jsmntype_t type, int start, int end) |
| Fills token type and boundaries. | |
| static int | jsmn_parse_primitive (jsmn_parser *parser, const char *js, size_t len, jsmntok_t *tokens, size_t num_tokens) |
| Fills next available token with JSON primitive. | |
| static int | jsmn_parse_string (jsmn_parser *parser, const char *js, size_t len, jsmntok_t *tokens, size_t num_tokens) |
| Fills next token with JSON string. | |
| 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. | |
| void | jsmn_init (jsmn_parser *parser) |
| Creates a new parser based over a given buffer with an array of tokens available. | |
Detailed Description
Implementation of the JSMN (Jasmine) JSON parser.
For more information on JSMN:
- See also:
- http://zserge.com/jsmn.html
Definition in file jsmn.c.
Function Documentation
| static jsmntok_t* jsmn_alloc_token | ( | jsmn_parser * | parser, |
| jsmntok_t * | tokens, | ||
| size_t | num_tokens | ||
| ) | [static] |
| static void jsmn_fill_token | ( | jsmntok_t * | token, |
| jsmntype_t | type, | ||
| int | start, | ||
| int | end | ||
| ) | [static] |
| 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] |
| static int jsmn_parse_string | ( | jsmn_parser * | parser, |
| const char * | js, | ||
| size_t | len, | ||
| jsmntok_t * | tokens, | ||
| size_t | num_tokens | ||
| ) | [static] |
Generated on Tue Jul 12 2022 11:16:39 by
1.7.2
