MCPcopy Create free account
hub / github.com/ElementsProject/lightning / json_tok_full_len

Function json_tok_full_len

common/json_parse_simple.c:21–26  ·  view source on GitHub ↗

Include " if it's a string. */

Source from the content-addressed store, hash-verified

19
20/* Include " if it's a string. */
21int json_tok_full_len(const jsmntok_t *t)
22{
23 if (t->type == JSMN_STRING)
24 return t->end - t->start + 2;
25 return t->end - t->start;
26}
27
28bool json_tok_strneq(const char *buffer, const jsmntok_t *tok,
29 const char *str, size_t len)

Callers 11

handle_percentFunction · 0.70
parse_fieldvalFunction · 0.70
parse_objFunction · 0.70
parse_arrelemFunction · 0.70
parse_arrFunction · 0.70
command_fail_badparamFunction · 0.70
param_outpoint_arrFunction · 0.70
param_lease_hexFunction · 0.70
json_add_tokFunction · 0.70
print_jsonFunction · 0.50
mainFunction · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected