builder

Return a wrapper of StringBuilder that internally calls format on all append calls.

Return

modified StringBuilder with default initial capacity 16


open fun builder(capacity: Int): Text.Builder

Return a wrapper of StringBuilder that internally calls format on all append calls.

Return

modified StringBuilder with initial capacity defined

Parameters

capacity

the initial capacity of the StringBuilder


open fun builder(@NonNull initial: String): Text.Builder

Return a wrapper of StringBuilder that internally calls format on all append calls.

Return

modified StringBuilder with initial string defined

Parameters

initial

the initial string of the StringBuilder