ROOTANA
Loading...
Searching...
No Matches
Data Structures | Functions | Variables
mjson.cxx File Reference
#include "mjson.h"
#include <stdio.h>
#include <assert.h>
#include <math.h>
#include <string.h>
#include <limits.h>
#include <stdlib.h>
#include <cerrno>
Include dependency graph for mjson.cxx:

Go to the source code of this file.

Data Structures

class  TestAtollWithOverflow
 

Functions

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 MJsonNodeparse_something (const char *sin, const char *s, const char **sout)
 
static MJsonNodeparse_array (const char *sin, const char *s, const char **sout)
 
static MJsonNodeparse_object (const char *sin, const char *s, const char **sout)
 
static MJsonNodeparse_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 MJsonNodeparse_number (const char *sin, const char *s, const char **sout)
 
static MJsonNodeparse_null (const char *sin, const char *s, const char **sout)
 
static MJsonNodeparse_true (const char *sin, const char *s, const char **sout)
 
static MJsonNodeparse_false (const char *sin, const char *s, const char **sout)
 
static char toHexChar (int c)
 
static void pnest (int nest)
 

Variables

static TestAtollWithOverflow runme
 

Function Documentation

◆ atoll_with_overflow()

bool atoll_with_overflow ( const char *  str,
long long &  number 
)

Definition at line 340 of file mjson.cxx.

Here is the caller graph for this function:

◆ hexToInt()

static int hexToInt ( char  c)
static

Definition at line 41 of file mjson.cxx.

Here is the caller graph for this function:

◆ parse_array()

static MJsonNode * parse_array ( const char *  sin,
const char *  s,
const char **  sout 
)
static

Definition at line 176 of file mjson.cxx.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ parse_digits()

static std::string parse_digits ( const char *  s,
const char **  sout 
)
static

Definition at line 321 of file mjson.cxx.

Here is the caller graph for this function:

◆ parse_false()

static MJsonNode * parse_false ( const char *  sin,
const char *  s,
const char **  sout 
)
static

Definition at line 607 of file mjson.cxx.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ parse_null()

static MJsonNode * parse_null ( const char *  sin,
const char *  s,
const char **  sout 
)
static

Definition at line 585 of file mjson.cxx.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ parse_number()

static MJsonNode * parse_number ( const char *  sin,
const char *  s,
const char **  sout 
)
static

Definition at line 422 of file mjson.cxx.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ parse_object()

static MJsonNode * parse_object ( const char *  sin,
const char *  s,
const char **  sout 
)
static

Definition at line 229 of file mjson.cxx.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ parse_something()

static MJsonNode * parse_something ( const char *  sin,
const char *  s,
const char **  sout 
)
static

Definition at line 619 of file mjson.cxx.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ parse_string()

static MJsonNode * parse_string ( const char *  sin,
const char *  s,
const char **  sout 
)
static

Definition at line 308 of file mjson.cxx.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ parse_true()

static MJsonNode * parse_true ( const char *  sin,
const char *  s,
const char **  sout 
)
static

Definition at line 596 of file mjson.cxx.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ pnest()

static void pnest ( int  nest)
static

Definition at line 1065 of file mjson.cxx.

Here is the caller graph for this function:

◆ skip_spaces()

static const char * skip_spaces ( const char *  s)
static

Definition at line 26 of file mjson.cxx.

Here is the caller graph for this function:

◆ test_atoll_with_overflow()

static void test_atoll_with_overflow ( )
static

Definition at line 378 of file mjson.cxx.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ test_atoll_with_overflow_value()

static void test_atoll_with_overflow_value ( const char *  s,
long long  v,
bool  flag 
)
static

Definition at line 358 of file mjson.cxx.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ toHexChar()

static char toHexChar ( int  c)
static

Definition at line 668 of file mjson.cxx.

Here is the caller graph for this function:

◆ xoutput_unicode()

static std::string xoutput_unicode ( int  unicode,
bool *  error 
)
static

Definition at line 72 of file mjson.cxx.

Here is the caller graph for this function:

◆ xparse_string()

static std::string xparse_string ( const char *  s,
const char **  sout,
bool *  error 
)
static

Definition at line 105 of file mjson.cxx.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ xparse_unicode()

static int xparse_unicode ( const char *  s,
const char **  sout 
)
static

Definition at line 54 of file mjson.cxx.

Here is the call graph for this function:
Here is the caller graph for this function:

Variable Documentation

◆ runme

TestAtollWithOverflow runme
static

Definition at line 420 of file mjson.cxx.