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

Function ti_trim_end

src/mcp/test_impact_source.c:41–46  ·  view source on GitHub ↗

The end of s[from..n) without its trailing whitespace. */

Source from the content-addressed store, hash-verified

39
40/* The end of s[from..n) without its trailing whitespace. */
41static size_t ti_trim_end(const char *s, size_t from, size_t n) {
42 while (n > from && ti_space(s[n - 1])) {
43 n--;
44 }
45 return n;
46}
47
48static size_t ti_word_end(const char *s, size_t i, size_t n) {
49 while (i < n && ti_word(s[i])) {

Callers 1

cbm_ti_line_is_commentFunction · 0.85

Calls 1

ti_spaceFunction · 0.85

Tested by

no test coverage detected