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

Function pl_squeeze

internal/cbm/doclink_perl.c:300–306  ·  view source on GitHub ↗

t[b, e) squeezed into out (cap + 1 bytes); *cut when it did not fit. */

Source from the content-addressed store, hash-verified

298
299/* t[b, e) squeezed into out (cap + 1 bytes); *cut when it did not fit. */
300static size_t pl_squeeze(const char *t, size_t b, size_t e, char *out, size_t cap, bool *cut) {
301 pl_out_t o = {.buf = out, .cap = cap};
302 pl_out_text(&o, t + b, e - b);
303 pl_out_end(&o);
304 *cut = o.cut;
305 return o.len;
306}
307
308/* ── Plain text ──────────────────────────────────────────────────── */
309

Callers 1

pl_emit_linkFunction · 0.85

Calls 2

pl_out_textFunction · 0.85
pl_out_endFunction · 0.85

Tested by

no test coverage detected