Bitcoin ABC 0.30.5
P2P Digital Currency
Macros | Enumerations | Functions | Variables
univalue_read.cpp File Reference
#include <univalue.h>
#include <univalue_utffilter.h>
#include <cstdint>
#include <cstdio>
#include <cstring>
#include <string>
#include <string_view>
#include <vector>
Include dependency graph for univalue_read.cpp:

Go to the source code of this file.

Macros

#define expect(bit)   (expectMask & (EXP_##bit))
 
#define setExpect(bit)   (expectMask |= EXP_##bit)
 
#define clearExpect(bit)   (expectMask &= ~EXP_##bit)
 

Enumerations

enum  expect_bits : unsigned {
  EXP_OBJ_NAME = (1U << 0) , EXP_COLON = (1U << 1) , EXP_ARR_VALUE = (1U << 2) , EXP_VALUE = (1U << 3) ,
  EXP_NOT_VALUE = (1U << 4)
}
 

Functions

static bool json_isdigit (int ch)
 
static const char * hatoui (const char *first, const char *last, unsigned int &out)
 
enum jtokentype getJsonToken (std::string &tokenVal, unsigned int &consumed, const char *raw, const char *end)
 

Variables

static constexpr size_t MAX_JSON_DEPTH = 512
 

Macro Definition Documentation

◆ clearExpect

#define clearExpect (   bit)    (expectMask &= ~EXP_##bit)

Definition at line 285 of file univalue_read.cpp.

◆ expect

#define expect (   bit)    (expectMask & (EXP_##bit))

Definition at line 283 of file univalue_read.cpp.

◆ setExpect

#define setExpect (   bit)    (expectMask |= EXP_##bit)

Definition at line 284 of file univalue_read.cpp.

Enumeration Type Documentation

◆ expect_bits

enum expect_bits : unsigned
Enumerator
EXP_OBJ_NAME 
EXP_COLON 
EXP_ARR_VALUE 
EXP_VALUE 
EXP_NOT_VALUE 

Definition at line 275 of file univalue_read.cpp.

Function Documentation

◆ getJsonToken()

enum jtokentype getJsonToken ( std::string &  tokenVal,
unsigned int &  consumed,
const char *  raw,
const char *  end 
)

Definition at line 50 of file univalue_read.cpp.

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

◆ hatoui()

static const char * hatoui ( const char *  first,
const char *  last,
unsigned int &  out 
)
static

Definition at line 28 of file univalue_read.cpp.

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

◆ json_isdigit()

static bool json_isdigit ( int  ch)
static

Definition at line 23 of file univalue_read.cpp.

Here is the caller graph for this function:

Variable Documentation

◆ MAX_JSON_DEPTH

constexpr size_t MAX_JSON_DEPTH = 512
staticconstexpr

Definition at line 21 of file univalue_read.cpp.