StringBuilder

Common
fun StringBuilder()

Constructs an empty string builder.

fun StringBuilder(capacity: Int)
fun StringBuilder(capacity: Int)

Constructs an empty string builder with the specified initial capacity.

JS
fun StringBuilder(capacity: Int)

Constructs an empty string builder with the specified initial capacity.

In Kotlin/JS implementation of StringBuilder the initial capacity has no effect on the further performance of operations.

fun StringBuilder(content: CharSequence)
fun StringBuilder(content: CharSequence)
fun StringBuilder(content: CharSequence)

Constructs a string builder that contains the same characters as the specified content char sequence.

fun StringBuilder(content: String)
fun StringBuilder(content: String)

Constructs a string builder that contains the same characters as the specified content string.

JS
fun StringBuilder(content: String)