deleteRange
Platform and version requirements: JS (1.4), Native (1.4)
fun deleteRange( startIndex: Int, endIndex: Int ): StringBuilder
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.
© 2010–2021 JetBrains s.r.o. and Kotlin Programming Language contributors
Licensed under the Apache License, Version 2.0.
https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.text/-string-builder/delete-range.html