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

@scala.annotation.targetName("_add")
inline def +=(inline v: A)(using inline tg: Given.DocTag[A]): String.Builder

Alias for add

Alias for add

Source
Builder.scala
@scala.annotation.targetName("addAt")
inline def +=@(inline off: Int, inline v: A)(using inline tg: Given.DocTag[A]): String.Builder

Alias for addAt

Alias for addAt

Source
Builder.scala
inline def add(inline v: A)(using inline tg: Given.DocTag[A]): String.Builder

Append

Append

Source
Builder.scala
inline def addAt(inline off: Int, inline v: A)(using inline tg: Given.DocTag[A]): String.Builder

Insert at position

Insert at position

Source
Builder.scala
inline def charAt(inline 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 makeString: String

Create String Same as "toString"

Create String Same as "toString"

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

Real value

Real value

Returns real value standing behind the opaque type

Inherited from
_methods
Source
Type.scala
@scala.annotation.targetName("remove_Range")

Remove range

Remove range

Source
Builder.scala
inline def removeAt(inline v: Int): String.Builder

Remove at position

Remove at position

Source
Builder.scala
inline def size: Int

Added char count

Added char count

Source
Builder.scala