t[b, e) squeezed into out (cap + 1 bytes); *cut when it did not fit. */
| 298 | |
| 299 | /* t[b, e) squeezed into out (cap + 1 bytes); *cut when it did not fit. */ |
| 300 | static 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 |
no test coverage detected