MCPcopy Create free account
hub / github.com/CppMicroServices/CppMicroServices / remove_prefix

Function remove_prefix

fixcoveragefilepaths.py:10–14  ·  view source on GitHub ↗
(line, prefix)

Source from the content-addressed store, hash-verified

8
9#----------- Remove prefix from a string -----------
10def remove_prefix(line, prefix):
11 if line.startswith(prefix):
12 return line[len(prefix):]
13 else:
14 return line
15
16#----------- Convert case-insensitive path to case-sensitive path -----------
17def casedpath_unc(path):

Callers 1

modifyXMLFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected