MCPcopy Create free account
hub / github.com/Kitware/CMake / __normalize_switch

Function __normalize_switch

Source/cmConvertMSBuildXMLToJSON.py:220–226  ·  view source on GitHub ↗
(switch, separator)

Source from the content-addressed store, hash-verified

218
219
220def __normalize_switch(switch, separator):
221 new = switch
222 if switch.startswith("/") or switch.startswith("-"):
223 new = switch[1:]
224 if new and separator:
225 new = new + separator
226 return new
227
228###########################################################################################
229# private xml functions

Callers 1

__convert_nodeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…