append
fun append(value: Char): StringBuilderfun append(c: Char): StringBuilderFor Common, JS
Appends the specified character value to this Appendable and returns this instance.
Parameters
For Native
Appends the specified character c to this Appendable and returns this instance.
Parameters
fun append(value: CharSequence?): StringBuilderfun append(csq: CharSequence?): StringBuilderfun append(
value: CharSequence?,
startIndex: Int,
endIndex: Int
): StringBuilderfun append(
csq: CharSequence?,
start: Int,
end: Int
): StringBuilderFor Common, JS
Appends a subsequence of the specified character sequence value to this Appendable and returns this instance.
Parameters
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.
Exceptions
IndexOutOfBoundsException - or IllegalArgumentException when startIndex or endIndex is out of range of the value character sequence indices or when startIndex > endIndex.
For Native
Appends a subsequence of the specified character sequence csq to this Appendable and returns this instance.
Parameters
csq - the character sequence from which a subsequence is appended. If csq is null,
then characters are appended as if csq contained the four characters "null".
start - the beginning (inclusive) of the subsequence to append.
end - the end (exclusive) of the subsequence to append.
Exceptions
IndexOutOfBoundsException - or IllegalArgumentException when start or end is out of range of the csq character sequence indices or when start > end.
fun append(value: Any?): StringBuilderfun append(value: Boolean): StringBuilder@ExperimentalStdlibApi fun append(
value: CharArray
): StringBuilderfun append(value: CharArray): StringBuilderAppends 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): StringBuilderAppends the specified string value to this string builder and returns this instance.
fun append(value: Byte): StringBuilderfun append(value: Short): StringBuilderfun append(value: Int): StringBuilderfun append(value: Long): StringBuilderfun append(value: Float): StringBuilderfun append(value: Double): StringBuilder