MCPcopy Index your code
hub / github.com/nodejs/node / Escape

Function Escape

deps/v8/tools/android-run.py:72–79  ·  view source on GitHub ↗
(arg)

Source from the content-addressed store, hash-verified

70 return exit_code or Check(output, errors)
71
72def Escape(arg):
73 def ShouldEscape():
74 for x in arg:
75 if not x.isalnum() and x != '-' and x != '_':
76 return True
77 return False
78
79 return arg if not ShouldEscape() else '"%s"' % (arg.replace('"', '\\"'))
80
81def WriteToTemporaryFile(data):
82 (fd, fname) = tempfile.mkstemp()

Callers 1

MainFunction · 0.85

Calls 1

ShouldEscapeFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…