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

Function jl_parse_key

src/cli/config_json_like.c:390–402  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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