Represents a utility class for efficiently building and manipulating strings using a mutable StringBuilder. Provides methods to append strings with optional padding, trim trailing spaces, clear the buffer, and retrieve the current result as a string.
Creates a new instance of SmartBuffer initialized with an empty StringBuilder. This method provides a convenient way to instantiate a SmartBuffer object.
Creates a new instance of SmartBuffer initialized with an empty StringBuilder. This method provides a convenient way to instantiate a SmartBuffer object.
Attributes
Returns
a new instance of SmartBuffer with an empty internal StringBuilder.