deleteRange

Common
JS
Native
1.4
fun StringBuilder.deleteRange(
    startIndex: Int,
    endIndex: Int
): StringBuilder
For Common, JS

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

Parameters

startIndex - the beginning (inclusive) of the range to remove.

endIndex - the end (exclusive) of the range to remove.

Exceptions

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

For Native

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

Parameters

startIndex - the beginning (inclusive) of the range to remove.

endIndex - the end (exclusive) of the range to remove.

Exceptions

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