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

Function sb_cps

internal/cbm/doc_pdf.c:1038–1044  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1036}
1037
1038static void sb_cps(sbuf_t *b, const uint32_t *s, int n) {
1039 char u[PDF_U8_MAX];
1040 for (int i = 0; i < n; i++) {
1041 int k = u8_put(s[i], u);
1042 sb_put(b, u, (size_t)k);
1043 }
1044}
1045
1046/* One page: its line-local structural tokens, then its join proposals. */
1047static void scan_page(CBMExtractCtx *ctx, const char *text, size_t len, uint32_t page,

Callers 1

scan_pageFunction · 0.85

Calls 2

u8_putFunction · 0.85
sb_putFunction · 0.85

Tested by

no test coverage detected