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

Function emit_ranges

scripts/gen-pdf-unicode.py:35–39  ·  view source on GitHub ↗
(f, name, rs)

Source from the content-addressed store, hash-verified

33
34
35def emit_ranges(f, name, rs):
36 f.write("const pdf_urange_t %s[] = {\n" % name)
37 for i in range(0, len(rs), 4):
38 f.write(" " + " ".join("{0x%X, 0x%X}," % r for r in rs[i:i + 4]) + "\n")
39 f.write("};\nconst int %s_COUNT = (int)(sizeof(%s) / sizeof(%s[0]));\n\n" % (name, name, name))
40
41
42def main():

Callers 1

mainFunction · 0.85

Calls 2

rangeFunction · 0.85
writeMethod · 0.45

Tested by

no test coverage detected