Appendable

Common
JS
Native
1.0
JVM
1.1
typealias Appendable = Appendable
(source)

An object to which char sequences and values can be appended.

Functions

Common
JS
Native
1.0

append

Appends the specified character value to this Appendable and returns this instance.

abstract fun append(value: Char): Appendable

Appends the specified character sequence value to this Appendable and returns this instance.

abstract fun append(value: CharSequence?): Appendable

Appends a subsequence of the specified character sequence value to this Appendable and returns this instance.

abstract fun append(
    value: CharSequence?,
    startIndex: Int,
    endIndex: Int
): Appendable

Extension Functions

Common
JVM
JS
Native
1.0

append

Appends all arguments to the given Appendable.

fun <T : Appendable> T.append(vararg value: CharSequence?): T
Common
JVM
JS
Native
1.4

appendLine

Appends a line feed character (\n) to this Appendable.

fun Appendable.appendLine(): Appendable

Appends value to the given Appendable and a line feed character (\n) after it.

fun Appendable.appendLine(value: CharSequence?): Appendable
fun Appendable.appendLine(value: Char): Appendable
Common
JVM
JS
Native
1.4

appendRange

Appends a subsequence of the specified character sequence value to this Appendable and returns this instance.

fun <T : Appendable> T.appendRange(
    value: CharSequence,
    startIndex: Int,
    endIndex: Int
): T

Inheritors

StringBuilder

A mutable sequence of characters.

Common
JS
1.0
class StringBuilder : Appendable, CharSequence
JVM
1.1
typealias StringBuilder = StringBuilder
Native
1.3
class StringBuilder : CharSequence, Appendable