MCPcopy Create free account
hub / github.com/ProgerXP/Notepad2e / CopyWithInsertion

Function CopyWithInsertion

scintilla/include/HFacer.py:41–51  ·  view source on GitHub ↗
(input, output, genfn, definition)

Source from the content-addressed store, hash-verified

39 out.write("#endif\n")
40
41def CopyWithInsertion(input, output, genfn, definition):
42 copying = 1
43 for line in input.readlines():
44 if copying:
45 output.write(line)
46 if Contains(line, "/* ++Autogenerated"):
47 copying = 0
48 genfn(definition, output)
49 if Contains(line, "/* --Autogenerated"):
50 copying = 1
51 output.write(line)
52
53def contents(filename):
54 f = open(filename)

Callers 1

RegenerateFunction · 0.85

Calls 1

ContainsFunction · 0.85

Tested by

no test coverage detected