MCPcopy Create free account
hub / github.com/boostorg/build / quote_line

Function quote_line

v2/example/customization/inline_file.py:10–22  ·  view source on GitHub ↗
(line)

Source from the content-addressed store, hash-verified

8from string import strip
9
10def quote_line(line):
11
12 result = ""
13
14 for i in line:
15 if (i == '\\'):
16 result = result + '\\\\'
17 elif (i == '\"'):
18 result = result + '\\\"'
19 elif (i != '\r' and i != '\n'):
20 result = result + i;
21
22 return '\"' + result + '\\n\"'
23
24def quote_file(file):
25 result = ""

Callers 1

quote_fileFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected