Dash Core  0.12.2.1
P2P Digital Currency
univalue.h File Reference
#include <stdint.h>
#include <string>
#include <vector>
#include <map>
#include <cassert>
#include <sstream>
#include <utility>

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 * 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 226 of file univalue.h.

Function Documentation

◆ find_value()

◆ getJsonToken()

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

Referenced by validNumStr().

◆ json_isspace()

static bool json_isspace ( int  ch)
inlinestatic

Definition at line 263 of file univalue.h.

Referenced by getJsonToken().

◆ jsonTokenIsValue()

static bool jsonTokenIsValue ( enum jtokentype  jtt)
inlinestatic

Definition at line 246 of file univalue.h.

Referenced by UniValue::read().

◆ Pair() [1/9]

◆ Pair() [2/9]

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

Definition at line 173 of file univalue.h.

◆ Pair() [3/9]

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

Definition at line 180 of file univalue.h.

◆ Pair() [4/9]

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

Definition at line 187 of file univalue.h.

◆ Pair() [5/9]

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

Definition at line 194 of file univalue.h.

◆ Pair() [6/9]

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

Definition at line 201 of file univalue.h.

◆ Pair() [7/9]

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

Definition at line 208 of file univalue.h.

◆ Pair() [8/9]

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

Definition at line 215 of file univalue.h.

◆ Pair() [9/9]

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

Definition at line 221 of file univalue.h.

◆ uvTypeName()

const char* uvTypeName ( UniValue::VType  t)

Definition at line 265 of file univalue.cpp.

Referenced by RPCTypeCheck(), and RPCTypeCheckObj().

Variable Documentation

◆ NullUniValue