MCPcopy Create free account
hub / github.com/boostorg/build / adjust_suffix

Method adjust_suffix

v2/test/BoostBuild.py:801–808  ·  view source on GitHub ↗
(self, name)

Source from the content-addressed store, hash-verified

799 return result
800
801 def adjust_suffix(self, name):
802 if not self.translate_suffixes:
803 return name
804 pos = name.rfind(".")
805 if pos == -1:
806 return name
807 suffix = name[pos:]
808 return name[:pos] + suffixes.get(suffix, suffix)
809
810 # Acceps either a string or a list of strings and returns a list of
811 # strings. Adjusts suffixes on all names.

Calls 1

getMethod · 0.80