Bitcoin ABC  0.22.13
P2P Digital Currency
Classes | Enumerations | Functions | Variables
univalue.h File Reference
#include <stdint.h>
#include <string.h>
#include <string>
#include <vector>
#include <map>
#include <cassert>
#include <utility>
Include dependency graph for univalue.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  UniValue
 

Enumerations

enum  jtokentype {
  JTOK_ERR = -1, JTOK_NONE = 0, JTOK_OBJ_OPEN, JTOK_OBJ_CLOSE,
  JTOK_ARR_OPEN, JTOK_ARR_CLOSE, JTOK_COLON, JTOK_COMMA,
  JTOK_KW_NULL, JTOK_KW_TRUE, JTOK_KW_FALSE, JTOK_NUMBER,
  JTOK_STRING
}
 

Functions

static std::pair< std::string, UniValuePair (const char *cKey, const char *cVal)
 
static std::pair< std::string, UniValuePair (const char *cKey, std::string strVal)
 
static std::pair< std::string, UniValuePair (const char *cKey, uint64_t u64Val)
 
static std::pair< std::string, UniValuePair (const char *cKey, int64_t i64Val)
 
static std::pair< std::string, UniValuePair (const char *cKey, bool iVal)
 
static std::pair< std::string, UniValuePair (const char *cKey, int iVal)
 
static std::pair< std::string, UniValuePair (const char *cKey, double dVal)
 
static std::pair< std::string, UniValuePair (const char *cKey, const UniValue &uVal)
 
static std::pair< std::string, UniValuePair (std::string key, const UniValue &uVal)
 
enum jtokentype getJsonToken (std::string &tokenVal, unsigned int &consumed, const char *raw, const char *end)
 
const char * uvTypeName (UniValue::VType t)
 
static bool jsonTokenIsValue (enum jtokentype jtt)
 
static bool json_isspace (int ch)
 
const UniValuefind_value (const UniValue &obj, const std::string &name)
 

Variables

const UniValue NullUniValue
 

Enumeration Type Documentation

◆ jtokentype

enum jtokentype
Enumerator
JTOK_ERR 
JTOK_NONE 
JTOK_OBJ_OPEN 
JTOK_OBJ_CLOSE 
JTOK_ARR_OPEN 
JTOK_ARR_CLOSE 
JTOK_COLON 
JTOK_COMMA 
JTOK_KW_NULL 
JTOK_KW_TRUE 
JTOK_KW_FALSE 
JTOK_NUMBER 
JTOK_STRING 

Definition at line 206 of file univalue.h.

Function Documentation

◆ find_value()

const UniValue& find_value ( const UniValue obj,
const std::string &  name 
)

Definition at line 234 of file univalue.cpp.

Here is the caller graph for this function:

◆ getJsonToken()

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

Definition at line 51 of file univalue_read.cpp.

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

◆ json_isspace()

static bool json_isspace ( int  ch)
inlinestatic

Definition at line 243 of file univalue.h.

Here is the caller graph for this function:

◆ jsonTokenIsValue()

static bool jsonTokenIsValue ( enum jtokentype  jtt)
inlinestatic

Definition at line 226 of file univalue.h.

Here is the caller graph for this function:

◆ Pair() [1/9]

static std::pair<std::string,UniValue> Pair ( const char *  cKey,
const char *  cVal 
)
inlinestatic

Definition at line 146 of file univalue.h.

◆ Pair() [2/9]

static std::pair<std::string,UniValue> Pair ( const char *  cKey,
std::string  strVal 
)
inlinestatic

Definition at line 153 of file univalue.h.

◆ Pair() [3/9]

static std::pair<std::string,UniValue> Pair ( const char *  cKey,
uint64_t  u64Val 
)
inlinestatic

Definition at line 160 of file univalue.h.

◆ Pair() [4/9]

static std::pair<std::string,UniValue> Pair ( const char *  cKey,
int64_t  i64Val 
)
inlinestatic

Definition at line 167 of file univalue.h.

◆ Pair() [5/9]

static std::pair<std::string,UniValue> Pair ( const char *  cKey,
bool  iVal 
)
inlinestatic

Definition at line 174 of file univalue.h.

◆ Pair() [6/9]

static std::pair<std::string,UniValue> Pair ( const char *  cKey,
int  iVal 
)
inlinestatic

Definition at line 181 of file univalue.h.

◆ Pair() [7/9]

static std::pair<std::string,UniValue> Pair ( const char *  cKey,
double  dVal 
)
inlinestatic

Definition at line 188 of file univalue.h.

◆ Pair() [8/9]

static std::pair<std::string,UniValue> Pair ( const char *  cKey,
const UniValue uVal 
)
inlinestatic

Definition at line 195 of file univalue.h.

◆ Pair() [9/9]

static std::pair<std::string,UniValue> Pair ( std::string  key,
const UniValue uVal 
)
inlinestatic

Definition at line 201 of file univalue.h.

◆ uvTypeName()

const char* uvTypeName ( UniValue::VType  t)

Definition at line 219 of file univalue.cpp.

Here is the caller graph for this function:

Variable Documentation

◆ NullUniValue

const UniValue NullUniValue

Definition at line 13 of file univalue.cpp.