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

Function adr_num

internal/cbm/doc_adr.c:668–677  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

666}
667
668static int adr_num(const char *s, size_t n, size_t *used) {
669 size_t i = 0;
670 int v = 0;
671 while (i < n && adr_digit(s[i]) && i < ADR_YEAR_DIGITS + SKIP_ONE) {
672 v = (v * CBM_DECIMAL_BASE) + (s[i] - '0');
673 i++;
674 }
675 *used = i;
676 return v;
677}
678
679/* An explicit date in s: yyyy-mm-dd (or / .), yyyymmdd, "d Month yyyy",
680 * "Month d, yyyy", or "Month yyyy" (month precision). Ambiguous numeric

Callers 1

adr_parse_dateFunction · 0.85

Calls 1

adr_digitFunction · 0.85

Tested by

no test coverage detected