insertRange

expect fun StringBuilder.insertRange(index: Int, value: CharArray, startIndex: Int, endIndex: Int): StringBuilder(source)

Inserts characters in a subarray of the specified character array value into this string builder at the specified index and returns this instance.

The inserted characters go in same order as in the value array, starting at index.

Since Kotlin

1.4

Parameters

index

the position in this string builder to insert at.

value

the array from which characters are inserted.

startIndex

the beginning (inclusive) of the subarray to insert.

endIndex

the end (exclusive) of the subarray to insert.

Throws

if index is less than zero or greater than the length of this string builder.


expect fun StringBuilder.insertRange(index: Int, value: CharSequence, startIndex: Int, endIndex: Int): StringBuilder(source)

Inserts characters in a subsequence of the specified character sequence value into this string builder at the specified index and returns this instance.

The inserted characters go in the same order as in the value character sequence, starting at index.

Since Kotlin

1.4

Parameters

index

the position in this string builder to insert at.

value

the character sequence from which a subsequence is inserted.

startIndex

the beginning (inclusive) of the subsequence to insert.

endIndex

the end (exclusive) of the subsequence to insert.

Throws

if index is less than zero or greater than the length of this string builder.

actual inline fun StringBuilder.insertRange(index: Int, value: CharArray, startIndex: Int, endIndex: Int): StringBuilder(source)

Inserts characters in a subarray of the specified character array value into this string builder at the specified index and returns this instance.

The inserted characters go in same order as in the value array, starting at index.

Since Kotlin

1.4

Parameters

index

the position in this string builder to insert at.

value

the array from which characters are inserted.

startIndex

the beginning (inclusive) of the subarray to insert.

endIndex

the end (exclusive) of the subarray to insert.

Throws

if index is less than zero or greater than the length of this string builder.


actual inline fun StringBuilder.insertRange(index: Int, value: CharSequence, startIndex: Int, endIndex: Int): StringBuilder(source)

Inserts characters in a subsequence of the specified character sequence value into this string builder at the specified index and returns this instance.

The inserted characters go in the same order as in the value character sequence, starting at index.

Since Kotlin

1.4

Parameters

index

the position in this string builder to insert at.

value

the character sequence from which a subsequence is inserted.

startIndex

the beginning (inclusive) of the subsequence to insert.

endIndex

the end (exclusive) of the subsequence to insert.

Throws

if index is less than zero or greater than the length of this string builder.

actual inline fun StringBuilder.insertRange(index: Int, value: CharArray, startIndex: Int, endIndex: Int): StringBuilder(source)

Inserts characters in a subarray of the specified character array value into this string builder at the specified index and returns this instance.

The inserted characters go in same order as in the value array, starting at index.

Since Kotlin

1.4

Parameters

index

the position in this string builder to insert at.

value

the array from which characters are inserted.

startIndex

the beginning (inclusive) of the subarray to insert.

endIndex

the end (exclusive) of the subarray to insert.

Throws

if index is less than zero or greater than the length of this string builder.


actual inline fun StringBuilder.insertRange(index: Int, value: CharSequence, startIndex: Int, endIndex: Int): StringBuilder(source)

Inserts characters in a subsequence of the specified character sequence value into this string builder at the specified index and returns this instance.

The inserted characters go in the same order as in the value character sequence, starting at index.

Since Kotlin

1.4

Parameters

index

the position in this string builder to insert at.

value

the character sequence from which a subsequence is inserted.

startIndex

the beginning (inclusive) of the subsequence to insert.

endIndex

the end (exclusive) of the subsequence to insert.

Throws

if index is less than zero or greater than the length of this string builder.

actual inline fun StringBuilder.insertRange(index: Int, value: CharArray, startIndex: Int, endIndex: Int): StringBuilder(source)

Inserts characters in a subarray of the specified character array value into this string builder at the specified index and returns this instance.

The inserted characters go in same order as in the value array, starting at index.

Since Kotlin

1.8

Parameters

index

the position in this string builder to insert at.

value

the array from which characters are inserted.

startIndex

the beginning (inclusive) of the subarray to insert.

endIndex

the end (exclusive) of the subarray to insert.

Throws

if index is less than zero or greater than the length of this string builder.


actual inline fun StringBuilder.insertRange(index: Int, value: CharSequence, startIndex: Int, endIndex: Int): StringBuilder(source)

Inserts characters in a subsequence of the specified character sequence value into this string builder at the specified index and returns this instance.

The inserted characters go in the same order as in the value character sequence, starting at index.

Since Kotlin

1.8

Parameters

index

the position in this string builder to insert at.

value

the character sequence from which a subsequence is inserted.

startIndex

the beginning (inclusive) of the subsequence to insert.

endIndex

the end (exclusive) of the subsequence to insert.

Throws

if index is less than zero or greater than the length of this string builder.

actual inline fun StringBuilder.insertRange(index: Int, value: CharArray, startIndex: Int, endIndex: Int): StringBuilder(source)

Inserts characters in a subarray of the specified character array value into this string builder at the specified index and returns this instance.

The inserted characters go in same order as in the value array, starting at index.

Since Kotlin

1.8

Parameters

index

the position in this string builder to insert at.

value

the array from which characters are inserted.

startIndex

the beginning (inclusive) of the subarray to insert.

endIndex

the end (exclusive) of the subarray to insert.

Throws

if index is less than zero or greater than the length of this string builder.


actual inline fun StringBuilder.insertRange(index: Int, value: CharSequence, startIndex: Int, endIndex: Int): StringBuilder(source)

Inserts characters in a subsequence of the specified character sequence value into this string builder at the specified index and returns this instance.

The inserted characters go in the same order as in the value character sequence, starting at index.

Since Kotlin

1.8

Parameters

index

the position in this string builder to insert at.

value

the character sequence from which a subsequence is inserted.

startIndex

the beginning (inclusive) of the subsequence to insert.

endIndex

the end (exclusive) of the subsequence to insert.

Throws

if index is less than zero or greater than the length of this string builder.