append

expect open override fun append(value: Char): StringBuilder(source)

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

Since Kotlin

1.0

Parameters

value

the character to append.


expect open override fun append(value: CharSequence?): StringBuilder(source)

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

Since Kotlin

1.0

Parameters

value

the character sequence to append. If value is null, then the four characters "null" are appended to this Appendable.


expect open override fun append(value: CharSequence?, startIndex: Int, endIndex: Int): StringBuilder(source)

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

Since Kotlin

1.0

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.

Throws

or IllegalArgumentException when startIndex or endIndex is out of range of the value character sequence indices or when startIndex > endIndex.


expect fun append(value: Any?): StringBuilder(source)

Appends the string representation of the specified object value to this string builder and returns this instance.

The overall effect is exactly as if the value were converted to a string by the value.toString() method, and then that string was appended to this string builder.

Since Kotlin

1.0

expect fun append(value: Boolean): StringBuilder(source)

Appends the string representation of the specified boolean value to this string builder and returns this instance.

The overall effect is exactly as if the value were converted to a string by the value.toString() method, and then that string was appended to this string builder.

Since Kotlin

1.3

expect fun append(value: Int): StringBuilder(source)

Appends the string representation of the specified int value to this string builder and returns this instance.

The overall effect is exactly as if the value were converted to a string by the value.toString() method, and then that string was appended to this string builder.

Since Kotlin

1.9

expect fun append(value: Long): StringBuilder(source)

Appends the string representation of the specified long value to this string builder and returns this instance.

The overall effect is exactly as if the value were converted to a string by the value.toString() method, and then that string was appended to this string builder.

Since Kotlin

1.9

expect fun append(value: Float): StringBuilder(source)

Appends the string representation of the specified float value to this string builder and returns this instance.

The overall effect is exactly as if the value were converted to a string by the value.toString() method, and then that string was appended to this string builder.

Since Kotlin

1.9

expect fun append(value: Double): StringBuilder(source)

Appends the string representation of the specified double value to this string builder and returns this instance.

The overall effect is exactly as if the value were converted to a string by the value.toString() method, and then that string was appended to this string builder.

Since Kotlin

1.9

expect fun append(value: CharArray): StringBuilder(source)

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.

Since Kotlin

1.4

expect fun append(value: String?): StringBuilder(source)

Appends the specified string value to this string builder and returns this instance.

If value is null, then the four characters "null" are appended.

Since Kotlin

1.3

Appends the string representation of the specified byte value to this string builder and returns this instance.

The overall effect is exactly as if the value were converted to a string by the value.toString() method, and then that string was appended to this string builder.

Since Kotlin

1.9

Appends the string representation of the specified short value to this string builder and returns this instance.

The overall effect is exactly as if the value were converted to a string by the value.toString() method, and then that string was appended to this string builder.

Since Kotlin

1.9

actual open override fun append(value: Char): StringBuilder(source)

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

Since Kotlin

1.1

Parameters

value

the character to append.


actual open override fun append(value: CharSequence?): StringBuilder(source)

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

Since Kotlin

1.1

Parameters

value

the character sequence to append. If value is null, then the four characters "null" are appended to this Appendable.


actual open override fun append(value: CharSequence?, startIndex: Int, endIndex: Int): StringBuilder(source)

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

Since Kotlin

1.1

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.

Throws

or IllegalArgumentException when startIndex or endIndex is out of range of the value character sequence indices or when startIndex > endIndex.


actual fun append(value: Any?): StringBuilder(source)

Appends the string representation of the specified object value to this string builder and returns this instance.

The overall effect is exactly as if the value were converted to a string by the value.toString() method, and then that string was appended to this string builder.

Since Kotlin

1.1

actual fun append(value: Boolean): StringBuilder(source)

Appends the string representation of the specified boolean value to this string builder and returns this instance.

The overall effect is exactly as if the value were converted to a string by the value.toString() method, and then that string was appended to this string builder.

Since Kotlin

1.3

actual fun append(value: Int): StringBuilder(source)

Appends the string representation of the specified int value to this string builder and returns this instance.

The overall effect is exactly as if the value were converted to a string by the value.toString() method, and then that string was appended to this string builder.

Since Kotlin

1.9

actual fun append(value: Long): StringBuilder(source)

Appends the string representation of the specified long value to this string builder and returns this instance.

The overall effect is exactly as if the value were converted to a string by the value.toString() method, and then that string was appended to this string builder.

Since Kotlin

1.9

actual fun append(value: Float): StringBuilder(source)

Appends the string representation of the specified float value to this string builder and returns this instance.

The overall effect is exactly as if the value were converted to a string by the value.toString() method, and then that string was appended to this string builder.

Since Kotlin

1.9

actual fun append(value: Double): StringBuilder(source)

Appends the string representation of the specified double value to this string builder and returns this instance.

The overall effect is exactly as if the value were converted to a string by the value.toString() method, and then that string was appended to this string builder.

Since Kotlin

1.9

actual fun append(value: CharArray): StringBuilder(source)

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.

Since Kotlin

1.4

actual fun append(value: String?): StringBuilder(source)

Appends the specified string value to this string builder and returns this instance.

If value is null, then the four characters "null" are appended.

Since Kotlin

1.3

Appends the string representation of the specified byte value to this string builder and returns this instance.

The overall effect is exactly as if the value were converted to a string by the value.toString() method, and then that string was appended to this string builder.

Since Kotlin

1.3

Appends the string representation of the specified short value to this string builder and returns this instance.

The overall effect is exactly as if the value were converted to a string by the value.toString() method, and then that string was appended to this string builder.

Since Kotlin

1.3

actual open override fun append(value: Char): StringBuilder(source)

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

Since Kotlin

1.3

Parameters

value

the character to append.


actual open override fun append(value: CharSequence?): StringBuilder(source)

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

Since Kotlin

1.3

Parameters

value

the character sequence to append. If value is null, then the four characters "null" are appended to this Appendable.


actual open override fun append(value: CharSequence?, startIndex: Int, endIndex: Int): StringBuilder(source)

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

Since Kotlin

1.3

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.

Throws

or IllegalArgumentException when startIndex or endIndex is out of range of the value character sequence indices or when startIndex > endIndex.


actual fun append(value: Any?): StringBuilder(source)

Appends the string representation of the specified object value to this string builder and returns this instance.

The overall effect is exactly as if the value were converted to a string by the value.toString() method, and then that string was appended to this string builder.

Since Kotlin

1.3

actual fun append(value: Boolean): StringBuilder(source)

Appends the string representation of the specified boolean value to this string builder and returns this instance.

The overall effect is exactly as if the value were converted to a string by the value.toString() method, and then that string was appended to this string builder.

Since Kotlin

1.3

actual fun append(value: Int): StringBuilder(source)

Appends the string representation of the specified int value to this string builder and returns this instance.

The overall effect is exactly as if the value were converted to a string by the value.toString() method, and then that string was appended to this string builder.

Since Kotlin

1.3

actual fun append(value: Long): StringBuilder(source)

Appends the string representation of the specified long value to this string builder and returns this instance.

The overall effect is exactly as if the value were converted to a string by the value.toString() method, and then that string was appended to this string builder.

Since Kotlin

1.3

actual fun append(value: Float): StringBuilder(source)

Appends the string representation of the specified float value to this string builder and returns this instance.

The overall effect is exactly as if the value were converted to a string by the value.toString() method, and then that string was appended to this string builder.

Since Kotlin

1.3

actual fun append(value: Double): StringBuilder(source)

Appends the string representation of the specified double value to this string builder and returns this instance.

The overall effect is exactly as if the value were converted to a string by the value.toString() method, and then that string was appended to this string builder.

Since Kotlin

1.3

actual fun append(value: CharArray): StringBuilder(source)

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.

Since Kotlin

1.3

actual fun append(value: String?): StringBuilder(source)

Appends the specified string value to this string builder and returns this instance.

If value is null, then the four characters "null" are appended.

Since Kotlin

1.3

Appends the string representation of the specified byte value to this string builder and returns this instance.

The overall effect is exactly as if the value were converted to a string by the value.toString() method, and then that string was appended to this string builder.

Since Kotlin

1.8

Appends the string representation of the specified short value to this string builder and returns this instance.

The overall effect is exactly as if the value were converted to a string by the value.toString() method, and then that string was appended to this string builder.

Since Kotlin

1.8

actual open override fun append(value: Char): StringBuilder(source)

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

Since Kotlin

1.8

Parameters

value

the character to append.


actual open override fun append(value: CharSequence?): StringBuilder(source)

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

Since Kotlin

1.8

Parameters

value

the character sequence to append. If value is null, then the four characters "null" are appended to this Appendable.


actual open override fun append(value: CharSequence?, startIndex: Int, endIndex: Int): StringBuilder(source)

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

Since Kotlin

1.8

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.

Throws

or IllegalArgumentException when startIndex or endIndex is out of range of the value character sequence indices or when startIndex > endIndex.


actual fun append(value: Any?): StringBuilder(source)

Appends the string representation of the specified object value to this string builder and returns this instance.

The overall effect is exactly as if the value were converted to a string by the value.toString() method, and then that string was appended to this string builder.

Since Kotlin

1.8

actual fun append(value: Boolean): StringBuilder(source)

Appends the string representation of the specified boolean value to this string builder and returns this instance.

The overall effect is exactly as if the value were converted to a string by the value.toString() method, and then that string was appended to this string builder.

Since Kotlin

1.8

actual fun append(value: Int): StringBuilder(source)

Appends the string representation of the specified int value to this string builder and returns this instance.

The overall effect is exactly as if the value were converted to a string by the value.toString() method, and then that string was appended to this string builder.

Since Kotlin

1.8

actual fun append(value: Long): StringBuilder(source)

Appends the string representation of the specified long value to this string builder and returns this instance.

The overall effect is exactly as if the value were converted to a string by the value.toString() method, and then that string was appended to this string builder.

Since Kotlin

1.8

actual fun append(value: Float): StringBuilder(source)

Appends the string representation of the specified float value to this string builder and returns this instance.

The overall effect is exactly as if the value were converted to a string by the value.toString() method, and then that string was appended to this string builder.

Since Kotlin

1.8

actual fun append(value: Double): StringBuilder(source)

Appends the string representation of the specified double value to this string builder and returns this instance.

The overall effect is exactly as if the value were converted to a string by the value.toString() method, and then that string was appended to this string builder.

Since Kotlin

1.8

actual fun append(value: CharArray): StringBuilder(source)

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.

Since Kotlin

1.8

actual fun append(value: String?): StringBuilder(source)

Appends the specified string value to this string builder and returns this instance.

If value is null, then the four characters "null" are appended.

Since Kotlin

1.8

Appends the string representation of the specified byte value to this string builder and returns this instance.

The overall effect is exactly as if the value were converted to a string by the value.toString() method, and then that string was appended to this string builder.

Since Kotlin

1.8

Appends the string representation of the specified short value to this string builder and returns this instance.

The overall effect is exactly as if the value were converted to a string by the value.toString() method, and then that string was appended to this string builder.

Since Kotlin

1.8

actual open override fun append(value: Char): StringBuilder(source)

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

Since Kotlin

1.8

Parameters

value

the character to append.


actual open override fun append(value: CharSequence?): StringBuilder(source)

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

Since Kotlin

1.8

Parameters

value

the character sequence to append. If value is null, then the four characters "null" are appended to this Appendable.


actual open override fun append(value: CharSequence?, startIndex: Int, endIndex: Int): StringBuilder(source)

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

Since Kotlin

1.8

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.

Throws

or IllegalArgumentException when startIndex or endIndex is out of range of the value character sequence indices or when startIndex > endIndex.


actual fun append(value: Any?): StringBuilder(source)

Appends the string representation of the specified object value to this string builder and returns this instance.

The overall effect is exactly as if the value were converted to a string by the value.toString() method, and then that string was appended to this string builder.

Since Kotlin

1.8

actual fun append(value: Boolean): StringBuilder(source)

Appends the string representation of the specified boolean value to this string builder and returns this instance.

The overall effect is exactly as if the value were converted to a string by the value.toString() method, and then that string was appended to this string builder.

Since Kotlin

1.8

actual fun append(value: Int): StringBuilder(source)

Appends the string representation of the specified int value to this string builder and returns this instance.

The overall effect is exactly as if the value were converted to a string by the value.toString() method, and then that string was appended to this string builder.

Since Kotlin

1.8

actual fun append(value: Long): StringBuilder(source)

Appends the string representation of the specified long value to this string builder and returns this instance.

The overall effect is exactly as if the value were converted to a string by the value.toString() method, and then that string was appended to this string builder.

Since Kotlin

1.8

actual fun append(value: Float): StringBuilder(source)

Appends the string representation of the specified float value to this string builder and returns this instance.

The overall effect is exactly as if the value were converted to a string by the value.toString() method, and then that string was appended to this string builder.

Since Kotlin

1.8

actual fun append(value: Double): StringBuilder(source)

Appends the string representation of the specified double value to this string builder and returns this instance.

The overall effect is exactly as if the value were converted to a string by the value.toString() method, and then that string was appended to this string builder.

Since Kotlin

1.8

actual fun append(value: CharArray): StringBuilder(source)

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.

Since Kotlin

1.8

actual fun append(value: String?): StringBuilder(source)

Appends the specified string value to this string builder and returns this instance.

If value is null, then the four characters "null" are appended.

Since Kotlin

1.8