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

Function adr_direct_ref

internal/cbm/doc_adr.c:1213–1221  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1211}
1212
1213static bool adr_direct_ref(const char *s, size_t n) {
1214 size_t i = 0;
1215 while (i < n && (adr_blank(s[i]) || s[i] == ':' || s[i] == '|' || s[i] == '*' || s[i] == '_')) {
1216 i++;
1217 }
1218 unsigned number = 0;
1219 size_t len = 0;
1220 return i < n && (s[i] == '[' || adr_id_ref(s + i, n - i, &number, &len));
1221}
1222
1223/* "supersedes" and "superseded by" are ADR words wherever they stand;
1224 * "replaces" and "replaced by" are ordinary verbs of technical prose ("this

Callers 1

adr_relationsFunction · 0.85

Calls 2

adr_blankFunction · 0.85
adr_id_refFunction · 0.85

Tested by

no test coverage detected