nanome.util.string_builder module

class StringBuilder[source]

Bases: object

A class to build strings from lists of strings. This class is used internally.
append(s)[source]
Converts an object to a string and appends it to this StringBuilder’s list of strings.
Parameters:s – The object to be appended as a string.
append_string(s)[source]
Appends a string to this StringBuilder’s list of strings.
Parameters:s – The string to be appended.
clear()[source]
Clears this StringBuilder’s list of strings.
to_string(joiner='')[source]
Return a string joined with joiner from this StringBuilder’s list of strings.
Parameters:joiner – The string to join between each element of this StringBuilder’s list of strings.
Returns:A new string created from this StringBuilder’s list of strings.
Return type:str