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

Function json_tok_streq

common/json_parse_simple.h:23–27  ·  view source on GitHub ↗

Is this a string equal to str? */

Source from the content-addressed store, hash-verified

21
22/* Is this a string equal to str? */
23static inline bool json_tok_streq(const char *buffer, const jsmntok_t *tok,
24 const char *str)
25{
26 return json_tok_strneq(buffer, tok, str, strlen(str));
27}
28
29/* Does this string token start with prefix? */
30bool json_tok_startswith(const char *buffer, const jsmntok_t *tok,

Callers 15

get_scid_arrayFunction · 0.85
test_query_channel_rangeFunction · 0.85
test_reply_channel_rangeFunction · 0.85
get_query_flags_arrayFunction · 0.85
mainFunction · 0.85
param_newaddrFunction · 0.85
hook_extract_psbtFunction · 0.85
hook_extract_amountFunction · 0.85
param_subsystemFunction · 0.85

Calls 1

json_tok_strneqFunction · 0.50

Tested by 9

get_scid_arrayFunction · 0.68
test_query_channel_rangeFunction · 0.68
test_reply_channel_rangeFunction · 0.68
get_query_flags_arrayFunction · 0.68
mainFunction · 0.68
json_to_enctlvsFunction · 0.68
test_json_bad_utf8Function · 0.68
test_decodeFunction · 0.68
test_toksFunction · 0.68