MCPcopy Create free account
hub / github.com/ElementsProject/elements / jsonTokenIsValue

Function jsonTokenIsValue

src/univalue/include/univalue.h:203–218  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

201extern const char *uvTypeName(UniValue::VType t);
202
203static inline bool jsonTokenIsValue(enum jtokentype jtt)
204{
205 switch (jtt) {
206 case JTOK_KW_NULL:
207 case JTOK_KW_TRUE:
208 case JTOK_KW_FALSE:
209 case JTOK_NUMBER:
210 case JTOK_STRING:
211 return true;
212
213 default:
214 return false;
215 }
216
217 // not reached
218}
219
220static inline bool json_isspace(int ch)
221{

Callers 1

readMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected