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

Function _replacement

Utilities/Sphinx/update_versions.py:98–105  ·  view source on GitHub ↗
(match)

Source from the content-addressed store, hash-verified

96 return False
97
98 def _replacement(match):
99 if not overwrite and match.start('STAMP') != -1:
100 return match.group()
101 if version:
102 pattern = stamp_pattern_add.replace(b'VERSION', version.encode('utf-8'))
103 else:
104 pattern = stamp_pattern_remove
105 return match.expand(pattern)
106
107 new_data, nrepl = stamp_re.subn(_replacement, data, 1)
108 if nrepl and new_data != data:

Callers

nothing calls this directly

Calls 1

startMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…