fun CharSequence.removeRange( startIndex: Int, endIndex: Int ): CharSequence
Returns a char sequence with content of this char sequence where its part at the given range is removed.
startIndex
- the index of the first character to be removed.
endIndex
-
the index of the first character after the removed part to keep in the string.
endIndex is not included in the removed part.
fun String.removeRange( startIndex: Int, endIndex: Int ): String
Removes the part of a string at a given range.
startIndex
- the index of the first character to be removed.
endIndex
-
the index of the first character after the removed part to keep in the string.
endIndex is not included in the removed part.
fun CharSequence.removeRange(range: IntRange): CharSequence
fun String.removeRange(range: IntRange): String
© 2010–2019 JetBrains s.r.o.
Licensed under the Apache License, Version 2.0.
https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.text/remove-range.html