MCPcopy Index your code
hub / github.com/IBM/Project_CodeNet / string_eq

Function string_eq

tools/json-graph/src/jgflib.c:330–333  ·  view source on GitHub ↗

Checks whether (JSMN_STRING) token equals a certain string value. */

Source from the content-addressed store, hash-verified

328
329/** Checks whether (JSMN_STRING) token equals a certain string value. */
330int string_eq(jsmntok_t *tok, const char *s) {
331 int len = tok->end - tok->start;
332 return strlen(s) == len && !strncmp(input + tok->start, s, len);
333}
334
335/** Checks whether token start with s. */
336int token_startsWith(jsmntok_t *tok, const char *s) {

Callers 6

show_tokens_auxFunction · 0.85
attr_findFunction · 0.85
lookfor_value_of_keyFunction · 0.85
jgf_parseFunction · 0.85
node_infoFunction · 0.85
show_spt_auxFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected