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

Function cs_lex_run

internal/cbm/doclink_cs.c:1463–1470  ·  view source on GitHub ↗

Length of the run of `c` at src[i]. */

Source from the content-addressed store, hash-verified

1461
1462/* Length of the run of `c` at src[i]. */
1463static uint32_t cs_lex_run(cs_lex_t *lx, uint32_t i, char c) {
1464 uint32_t j = i;
1465 while (j < lx->n && lx->src[j] == c) {
1466 j++;
1467 }
1468 lx->steps += (uint64_t)(j - i) + SKIP_ONE;
1469 return j - i;
1470}
1471
1472/* 'x', '\n', 'A': past the literal, or past the lone quote when it is
1473 * not one. */

Callers 2

cs_lex_rawFunction · 0.85
cs_lex_literalFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected