Appendable

Common
JS
Native
1.0
interface Appendable
JVM
1.1
typealias Appendable = Appendable

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.3

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