insert
Deprecated
Warning since 1.4
Error since 1.6
Use insertRange(index: Int, csq: CharSequence, start: Int, end: Int) instead
Replace with
insertRange(index, csq ?: "null", start, end)
Inserts characters in a subsequence of the specified character sequence csq into this string builder at the specified index and returns this instance.
The inserted characters go in the same order as in the csq character sequence, starting at index.
Since Kotlin
1.3Parameters
the position in this string builder to insert at.
the beginning (inclusive) of the subsequence to insert.
the end (exclusive) of the subsequence to insert.
Throws
if index is less than zero or greater than the length of this string builder.
Deprecated
Warning since 1.4
Error since 1.6
Use insertRange(index: Int, csq: CharSequence, start: Int, end: Int) instead
Replace with
insertRange(index, csq ?: "null", start, end)
Inserts characters in a subsequence of the specified character sequence csq into this string builder at the specified index and returns this instance.
The inserted characters go in the same order as in the csq character sequence, starting at index.
Since Kotlin
1.8Parameters
the position in this string builder to insert at.
the beginning (inclusive) of the subsequence to insert.
the end (exclusive) of the subsequence to insert.
Throws
if index is less than zero or greater than the length of this string builder.
Deprecated
Warning since 1.4
Error since 1.6
Use insertRange(index: Int, csq: CharSequence, start: Int, end: Int) instead
Replace with
insertRange(index, csq ?: "null", start, end)
Inserts characters in a subsequence of the specified character sequence csq into this string builder at the specified index and returns this instance.
The inserted characters go in the same order as in the csq character sequence, starting at index.
Since Kotlin
1.8Parameters
the position in this string builder to insert at.
the beginning (inclusive) of the subsequence to insert.
the end (exclusive) of the subsequence to insert.
Throws
if index is less than zero or greater than the length of this string builder.