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

Function line_of

internal/cbm/doc_pdf.c:915–927  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

913} pdf_emit_t;
914
915static uint32_t line_of(const pdf_emit_t *e, int off) {
916 int lo = 0;
917 int hi = e->nlines - 1;
918 while (lo < hi) {
919 int mid = lo + (hi - lo + 1) / 2;
920 if (e->line_starts[mid] <= off) {
921 lo = mid;
922 } else {
923 hi = mid - 1;
924 }
925 }
926 return (uint32_t)lo + 1;
927}
928
929/* R3: "foo.bar=" right after "(" or "," -- a keyword argument, not a reference */
930static bool kwarg_at(const pdf_emit_t *e, int start, int end) {

Callers 1

scan_pageFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected