MCPcopy Create free account
hub / github.com/nodejs/node / _EscapeMSBuildSpecialCharacters

Function _EscapeMSBuildSpecialCharacters

tools/gyp/pylib/gyp/generator/msvs.py:867–878  ·  view source on GitHub ↗
(s)

Source from the content-addressed store, hash-verified

865
866
867def _EscapeMSBuildSpecialCharacters(s):
868 escape_dictionary = {
869 "%": "%25",
870 "$": "%24",
871 "@": "%40",
872 "'": "%27",
873 ";": "%3B",
874 "?": "%3F",
875 "*": "%2A",
876 }
877 result = "".join([escape_dictionary.get(c, c) for c in s])
878 return result
879
880
881def _EscapeCppDefineForMSBuild(s):

Callers 1

Calls 2

getMethod · 0.65
joinMethod · 0.45

Tested by

no test coverage detected