MCPcopy Create free account
hub / github.com/DeusData/codebase-memory-mcp / jl_parse_key

Function jl_parse_key

src/cli/config_json_like.c:391–403  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

389}
390
391static int jl_parse_key(jl_parser_t *parser, size_t *start_out, size_t *end_out) {
392 if (parser->pos >= parser->length) {
393 return -1;
394 }
395 unsigned char c = (unsigned char)parser->text[parser->pos];
396 if (c == '"' || (!parser->strict && c == '\'')) {
397 return jl_parse_string(parser, start_out, end_out);
398 }
399 if (!parser->strict) {
400 return jl_parse_identifier(parser, start_out, end_out);
401 }
402 return -1;
403}
404
405static bool jl_has_prefix(const jl_parser_t *parser, const char *word) {
406 size_t word_length = strlen(word);

Callers 2

jl_parse_objectFunction · 0.85
jl_scan_objectFunction · 0.85

Calls 2

jl_parse_stringFunction · 0.85
jl_parse_identifierFunction · 0.85

Tested by

no test coverage detected