String.Builder

opaque type Builder

String.Builder is a zero overhead opaque wrap of java.lang.StringBuilder. The "add" methods handle primitives without boxing.

Source
Builder.scala

Def

inline def +=(v: A)(using tg: Any.Def.Doc[A]): String.Builder

Alias for add

Alias for add

Source
Builder.scala
inline def +@=(off: Int, v: A)(using tg: Any.Def.Doc[A]): String.Builder

Alias for addAt

Alias for addAt

Source
Builder.scala
inline def add(w: A)(using tg: Any.Def.Tag[A]): String.Builder

Append

Append

Source
Builder.scala
inline def addAt(off: Int, w: A)(using tg: Any.Def.Tag[A]): String.Builder

Insert at position

Insert at position

Source
Builder.scala
inline def charAt(i: Int): Char

Char at position

Char at position

Source
Builder.scala
inline def isEmpty: Boolean

Zero size check

Zero size check

Source
Builder.scala
inline def real: java.lang.StringBuilder

Real value

Real value

Returns real value standing behind the opaque type.

This is a zero cost call.

Inherited from
_methods
Source
Base.scala
inline def removeAt(v: Int): String.Builder

Remove at position

Remove at position

Source
Builder.scala

Remove range

Remove range

Source
Builder.scala
inline def size: Int

Added char count

Added char count

Source
Builder.scala
inline def tag: String

Create String

Create String

Same as "toString"

Source
Builder.scala