fun append(value: Char): StringBuilder
Appends the specified character value to this Appendable and returns this instance.
value
- the character to append.
fun append(value: CharSequence?): StringBuilder
fun append( value: CharSequence?, startIndex: Int, endIndex: Int ): StringBuilder
Appends a subsequence of the specified character sequence value to this Appendable and returns this instance.
value
- the character sequence from which a subsequence is appended. If value is null
, then characters are appended as if value contained the four characters "null"
.
startIndex
- the beginning (inclusive) of the subsequence to append.
endIndex
- the end (exclusive) of the subsequence to append.
IndexOutOfBoundsException
- or IllegalArgumentException when startIndex or endIndex is out of range of the value character sequence indices or when startIndex > endIndex
.
fun append(value: Any?): StringBuilder
fun append(value: Boolean): StringBuilder
fun append(value: CharArray): StringBuilder
Appends characters in the specified character array value to this string builder and returns this instance.
Characters are appended in order, starting at the index 0.
fun append(value: String?): StringBuilder
fun append(value: String): StringBuilderDeprecated: Provided for binary compatibility.
fun append(value: Byte): StringBuilder
fun append(value: Short): StringBuilder
fun append(value: Int): StringBuilder
fun append(value: Long): StringBuilder
fun append(value: Float): StringBuilder
fun append(value: Double): StringBuilder
© 2010–2020 JetBrains s.r.o. and Kotlin Programming Language contributors
Licensed under the Apache License, Version 2.0.
https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.text/-string-builder/append.html