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

append

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

Common
JS
1.0
abstract fun append(value: Char): Appendable
Native
1.3
abstract fun append(c: Char): Appendable

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

Common
JS
1.0
abstract fun append(value: CharSequence?): Appendable
Native
1.3
abstract fun append(csq: CharSequence?): Appendable

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

Common
JS
1.0
abstract fun append(
    value: CharSequence?,
    startIndex: Int,
    endIndex: Int
): Appendable
Native
1.3
abstract fun append(
    csq: CharSequence?,
    start: Int,
    end: 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