Merge commit '982709199f1b4e9e35211c419a81938f9f1dd4ed' into bitcoin
This commit is contained in:
@@ -243,8 +243,41 @@ extern enum jtokentype getJsonToken(std::string& tokenVal,
|
||||
unsigned int& consumed, const char *raw);
|
||||
extern const char *uvTypeName(UniValue::VType t);
|
||||
|
||||
static inline bool jsonTokenIsValue(enum jtokentype jtt)
|
||||
{
|
||||
switch (jtt) {
|
||||
case JTOK_KW_NULL:
|
||||
case JTOK_KW_TRUE:
|
||||
case JTOK_KW_FALSE:
|
||||
case JTOK_NUMBER:
|
||||
case JTOK_STRING:
|
||||
return true;
|
||||
|
||||
default:
|
||||
return false;
|
||||
}
|
||||
|
||||
// not reached
|
||||
}
|
||||
|
||||
static inline bool json_isspace(int ch)
|
||||
{
|
||||
switch (ch) {
|
||||
case 0x20:
|
||||
case 0x09:
|
||||
case 0x0a:
|
||||
case 0x0d:
|
||||
return true;
|
||||
|
||||
default:
|
||||
return false;
|
||||
}
|
||||
|
||||
// not reached
|
||||
}
|
||||
|
||||
extern const UniValue NullUniValue;
|
||||
|
||||
const UniValue& find_value( const UniValue& obj, const std::string& name);
|
||||
|
||||
#endif // __UNIVALUE_H__
|
||||
#endif // __UNIVALUE_H__
|
||||
|
||||
Reference in New Issue
Block a user