SmartBuffer

com.phasmidsoftware.xmldoc.core.SmartBuffer
See theSmartBuffer companion class
object SmartBuffer

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.

Attributes

Companion
class
Graph
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type

Members list

Type members

Inherited and Abstract types

type MirroredElemLabels <: Tuple

The names of the product elements.

The names of the product elements.

Attributes

Inherited from:
Mirror
type MirroredLabel <: String

The name of the type.

The name of the type.

Attributes

Inherited from:
Mirror

Value members

Concrete methods

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.

def trimStringBuilder(sb: StringBuilder): Unit

Trims trailing spaces from the given StringBuilder instance. CONSIDER a faster way to do this

Trims trailing spaces from the given StringBuilder instance. CONSIDER a faster way to do this

Value parameters

sb

the StringBuilder instance to modify by removing trailing spaces

Attributes

Returns

Unit