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

Function cbm_classify_string

internal/cbm/helpers.c:1429–1445  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1427}
1428
1429int cbm_classify_string(const char *str, int len) {
1430 if (!str || len < PAIR_LEN) {
1431 return NOT_FOUND;
1432 }
1433
1434 if (is_url_like(str, len)) {
1435 return CBM_STRREF_URL;
1436 }
1437 if (has_config_extension(str, len)) {
1438 return CBM_STRREF_CONFIG;
1439 }
1440 if (is_env_var_pattern(str, len)) {
1441 return CBM_STRREF_CONFIG;
1442 }
1443
1444 return NOT_FOUND;
1445}

Callers 2

handle_string_refsFunction · 0.85
emit_yaml_leaf_valueFunction · 0.85

Calls 3

is_url_likeFunction · 0.85
has_config_extensionFunction · 0.85
is_env_var_patternFunction · 0.85

Tested by

no test coverage detected