#include "mjson.h"
#include <stdio.h>
#include <assert.h>
#include <math.h>
#include <string.h>
#include <limits.h>
#include <stdlib.h>
#include <cerrno>
Go to the source code of this file.
|
static const char * | skip_spaces (const char *s) |
|
static int | hexToInt (char c) |
|
static int | xparse_unicode (const char *s, const char **sout) |
|
static std::string | xoutput_unicode (int unicode, bool *error) |
|
static std::string | xparse_string (const char *s, const char **sout, bool *error) |
|
static MJsonNode * | parse_something (const char *sin, const char *s, const char **sout) |
|
static MJsonNode * | parse_array (const char *sin, const char *s, const char **sout) |
|
static MJsonNode * | parse_object (const char *sin, const char *s, const char **sout) |
|
static MJsonNode * | parse_string (const char *sin, const char *s, const char **sout) |
|
static std::string | parse_digits (const char *s, const char **sout) |
|
bool | atoll_with_overflow (const char *str, long long &number) |
|
static void | test_atoll_with_overflow_value (const char *s, long long v, bool flag) |
|
static void | test_atoll_with_overflow () |
|
static MJsonNode * | parse_number (const char *sin, const char *s, const char **sout) |
|
static MJsonNode * | parse_null (const char *sin, const char *s, const char **sout) |
|
static MJsonNode * | parse_true (const char *sin, const char *s, const char **sout) |
|
static MJsonNode * | parse_false (const char *sin, const char *s, const char **sout) |
|
static char | toHexChar (int c) |
|
static void | pnest (int nest) |
|
◆ atoll_with_overflow()
bool atoll_with_overflow |
( |
const char * |
str, |
|
|
long long & |
number |
|
) |
| |
◆ hexToInt()
static int hexToInt |
( |
char |
c | ) |
|
|
static |
◆ parse_array()
static MJsonNode * parse_array |
( |
const char * |
sin, |
|
|
const char * |
s, |
|
|
const char ** |
sout |
|
) |
| |
|
static |
◆ parse_digits()
static std::string parse_digits |
( |
const char * |
s, |
|
|
const char ** |
sout |
|
) |
| |
|
static |
◆ parse_false()
static MJsonNode * parse_false |
( |
const char * |
sin, |
|
|
const char * |
s, |
|
|
const char ** |
sout |
|
) |
| |
|
static |
◆ parse_null()
static MJsonNode * parse_null |
( |
const char * |
sin, |
|
|
const char * |
s, |
|
|
const char ** |
sout |
|
) |
| |
|
static |
◆ parse_number()
static MJsonNode * parse_number |
( |
const char * |
sin, |
|
|
const char * |
s, |
|
|
const char ** |
sout |
|
) |
| |
|
static |
◆ parse_object()
static MJsonNode * parse_object |
( |
const char * |
sin, |
|
|
const char * |
s, |
|
|
const char ** |
sout |
|
) |
| |
|
static |
◆ parse_something()
static MJsonNode * parse_something |
( |
const char * |
sin, |
|
|
const char * |
s, |
|
|
const char ** |
sout |
|
) |
| |
|
static |
◆ parse_string()
static MJsonNode * parse_string |
( |
const char * |
sin, |
|
|
const char * |
s, |
|
|
const char ** |
sout |
|
) |
| |
|
static |
◆ parse_true()
static MJsonNode * parse_true |
( |
const char * |
sin, |
|
|
const char * |
s, |
|
|
const char ** |
sout |
|
) |
| |
|
static |
◆ pnest()
static void pnest |
( |
int |
nest | ) |
|
|
static |
◆ skip_spaces()
static const char * skip_spaces |
( |
const char * |
s | ) |
|
|
static |
◆ test_atoll_with_overflow()
static void test_atoll_with_overflow |
( |
| ) |
|
|
static |
◆ test_atoll_with_overflow_value()
static void test_atoll_with_overflow_value |
( |
const char * |
s, |
|
|
long long |
v, |
|
|
bool |
flag |
|
) |
| |
|
static |
◆ toHexChar()
static char toHexChar |
( |
int |
c | ) |
|
|
static |
◆ xoutput_unicode()
static std::string xoutput_unicode |
( |
int |
unicode, |
|
|
bool * |
error |
|
) |
| |
|
static |
◆ xparse_string()
static std::string xparse_string |
( |
const char * |
s, |
|
|
const char ** |
sout, |
|
|
bool * |
error |
|
) |
| |
|
static |
◆ xparse_unicode()
static int xparse_unicode |
( |
const char * |
s, |
|
|
const char ** |
sout |
|
) |
| |
|
static |
◆ runme