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

Function pr_lower

src/pipeline/doc_links_php.c:159–169  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

157}
158
159static const char *pr_lower(pr_index_t *ix, const char *s, size_t n) {
160 char *c = cbm_arena_strndup(&ix->arena, s, n);
161 if (!c) {
162 ix->oom = true;
163 return NULL;
164 }
165 for (size_t i = 0; i < n; i++) {
166 c[i] = (char)tolower((unsigned char)c[i]);
167 }
168 return c;
169}
170
171/* Room for one more item in a growing arena array. */
172static bool pr_grow(pr_index_t *ix, void **items, int count, int *cap, size_t size) {

Callers 2

pr_add_rootFunction · 0.85
pr_linkFunction · 0.85

Calls 1

cbm_arena_strndupFunction · 0.50

Tested by

no test coverage detected