removeRange
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.
Parameters
startIndex
- the index of the first character to be removed.
the index of the first character after the removed part to keep in the string.
endIndex is not included in the removed part.
Removes the part of a string at a given range.
Parameters
startIndex
- the index of the first character to be removed.
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