deleteRange

expect fun StringBuilder.deleteRange(startIndex: Int, endIndex: Int): StringBuilder(source)

Removes characters in the specified range from this string builder and returns this instance.

Since Kotlin

1.4

Parameters

startIndex

the beginning (inclusive) of the range to remove.

endIndex

the end (exclusive) of the range to remove.

Throws

or IllegalArgumentException when startIndex is out of range of this string builder indices or when startIndex > endIndex.

actual inline fun StringBuilder.deleteRange(startIndex: Int, endIndex: Int): StringBuilder(source)

Removes characters in the specified range from this string builder and returns this instance.

Since Kotlin

1.4

Parameters

startIndex

the beginning (inclusive) of the range to remove.

endIndex

the end (exclusive) of the range to remove.

Throws

or IllegalArgumentException when startIndex is out of range of this string builder indices or when startIndex > endIndex.

actual inline fun StringBuilder.deleteRange(startIndex: Int, endIndex: Int): StringBuilder(source)

Removes characters in the specified range from this string builder and returns this instance.

Since Kotlin

1.4

Parameters

startIndex

the beginning (inclusive) of the range to remove.

endIndex

the end (exclusive) of the range to remove.

Throws

or IllegalArgumentException when startIndex is out of range of this string builder indices or when startIndex > endIndex.

actual inline fun StringBuilder.deleteRange(startIndex: Int, endIndex: Int): StringBuilder(source)

Removes characters in the specified range from this string builder and returns this instance.

Since Kotlin

1.8

Parameters

startIndex

the beginning (inclusive) of the range to remove.

endIndex

the end (exclusive) of the range to remove.

Throws

or IllegalArgumentException when startIndex is out of range of this string builder indices or when startIndex > endIndex.

actual inline fun StringBuilder.deleteRange(startIndex: Int, endIndex: Int): StringBuilder(source)

Removes characters in the specified range from this string builder and returns this instance.

Since Kotlin

1.8

Parameters

startIndex

the beginning (inclusive) of the range to remove.

endIndex

the end (exclusive) of the range to remove.

Throws

or IllegalArgumentException when startIndex is out of range of this string builder indices or when startIndex > endIndex.