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

Function has_code_ext

internal/cbm/doc_pdf.c:615–623  ·  view source on GitHub ↗

The extension after the last '.' of a segment, when it is a code extension. */

Source from the content-addressed store, hash-verified

613
614/* The extension after the last '.' of a segment, when it is a code extension. */
615static bool has_code_ext(const uint32_t *s, int n) {
616 int dot = -1;
617 for (int i = 0; i < n; i++) {
618 if (s[i] == '.') {
619 dot = i;
620 }
621 }
622 return dot >= 0 && in_list_lower(s + dot + 1, n - dot - 1, CODE_EXT);
623}
624
625static void path_candidate(const uint32_t *t, int a, int b, candv_t *cv) {
626 /* s.strip("./~"), split on '/', drop empties */

Callers 1

path_candidateFunction · 0.85

Calls 1

in_list_lowerFunction · 0.85

Tested by

no test coverage detected