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

Function kwarg_at

internal/cbm/doc_pdf.c:930–941  ·  view source on GitHub ↗

R3: "foo.bar=" right after "(" or "," -- a keyword argument, not a reference */

Source from the content-addressed store, hash-verified

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) {
931 if (end >= e->n || e->flat[end] != '=' || (end + 1 < e->n && e->flat[end + 1] == '=')) {
932 return false;
933 }
934 int lim = start - PDF_R3_WINDOW < 0 ? 0 : start - PDF_R3_WINDOW;
935 for (int i = start - 1; i >= lim; i--) {
936 if (!pdf_u_space(e->flat[i])) {
937 return e->flat[i] == '(' || e->flat[i] == ',';
938 }
939 }
940 return false;
941}
942
943static int u8_put(uint32_t cp, char *o) {
944 if (cp < 0x80) {

Callers 1

scan_pageFunction · 0.85

Calls 1

pdf_u_spaceFunction · 0.85

Tested by

no test coverage detected