Dash Core Source Documentation (0.16.0.1)
Find detailed information regarding the Dash Core source code.
#include <string.h>
#include <vector>
#include <stdio.h>
#include "univalue.h"
#include "univalue_utffilter.h"
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 { 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 (string &tokenVal, unsigned int &consumed, const char *raw, const char *end) |
Macro Definition Documentation
◆ clearExpect
#define clearExpect | ( | bit | ) | (expectMask &= ~EXP_##bit) |
Definition at line 251 of file univalue_read.cpp.
Referenced by UniValue::read().
◆ expect
#define expect | ( | bit | ) | (expectMask & (EXP_##bit)) |
Definition at line 249 of file univalue_read.cpp.
Referenced by ContextualCheckBlock(), and UniValue::read().
◆ setExpect
#define setExpect | ( | bit | ) | (expectMask |= EXP_##bit) |
Definition at line 250 of file univalue_read.cpp.
Referenced by UniValue::read().
Enumeration Type Documentation
◆ expect_bits
enum expect_bits |
Enumerator | |
---|---|
EXP_OBJ_NAME | |
EXP_COLON | |
EXP_ARR_VALUE | |
EXP_VALUE | |
EXP_NOT_VALUE |
Definition at line 241 of file univalue_read.cpp.
Function Documentation
◆ getJsonToken()
enum jtokentype getJsonToken | ( | string & | tokenVal, |
unsigned int & | consumed, | ||
const char * | raw, | ||
const char * | end | ||
) |
Definition at line 45 of file univalue_read.cpp.
References JSONUTF8StringFilter::finalize(), hatoui(), json_isdigit(), json_isspace(), JTOK_ARR_CLOSE, JTOK_ARR_OPEN, JTOK_COLON, JTOK_COMMA, JTOK_ERR, JTOK_KW_FALSE, JTOK_KW_NULL, JTOK_KW_TRUE, JTOK_NONE, JTOK_NUMBER, JTOK_OBJ_CLOSE, JTOK_OBJ_OPEN, JTOK_STRING, JSONUTF8StringFilter::push_back(), and JSONUTF8StringFilter::push_back_u().
Referenced by UniValue::read().
◆ hatoui()
|
static |
Definition at line 19 of file univalue_read.cpp.
References json_isdigit().
Referenced by getJsonToken().
◆ json_isdigit()
|
static |
Definition at line 13 of file univalue_read.cpp.
Referenced by getJsonToken(), and hatoui().