deleteRange

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

(JS source) (Native source)

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.