macpie.strtools.add_suffixes#
- macpie.strtools.add_suffixes(s: str, suffixes: List[str], max_length: int = -1)#
Add a list of suffixes to a string, optionally specifying a maximum string length and giving priority to the suffix if maximum string length is reached.
- Parameters:
s – string
suffixes – suffixes to append to
s
max_length – maximum string length of result, giving priority to the suffix