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

Function count_plus

tests/test_pipeline.c:22967–22975  ·  view source on GitHub ↗

Count the "+" characters in a range string. A truncation marker must appear * once and only at the end: every reader stops at the first token that is not * a range, so a marker in the middle silently hides every range after it. */

Source from the content-addressed store, hash-verified

22965 * once and only at the end: every reader stops at the first token that is not
22966 * a range, so a marker in the middle silently hides every range after it. */
22967static int count_plus(const char *s) {
22968 int n = 0;
22969 for (const char *p = s; *p; p++) {
22970 if (*p == '+') {
22971 n++;
22972 }
22973 }
22974 return n;
22975}
22976
22977TEST(pipeline_objectscript_export_range_join_keeps_one_trailing_marker) {
22978 char joined[256];

Callers 1

test_pipeline.cFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected