setRange
Replaces characters in the specified range of this string builder with characters in the specified string value and returns this instance.
Since Kotlin
1.4Parameters
the beginning (inclusive) of the range to replace.
the end (exclusive) of the range to replace.
the string to replace with.
Throws
or IllegalArgumentException if startIndex is less than zero, greater than the length of this string builder, or startIndex > endIndex
.
Replaces characters in the specified range of this string builder with characters in the specified string value and returns this instance.
Since Kotlin
1.4Parameters
the beginning (inclusive) of the range to replace.
the end (exclusive) of the range to replace.
the string to replace with.
Throws
or IllegalArgumentException if startIndex is less than zero, greater than the length of this string builder, or startIndex > endIndex
.
Replaces characters in the specified range of this string builder with characters in the specified string value and returns this instance.
Since Kotlin
1.4Parameters
the beginning (inclusive) of the range to replace.
the end (exclusive) of the range to replace.
the string to replace with.
Throws
or IllegalArgumentException if startIndex is less than zero, greater than the length of this string builder, or startIndex > endIndex
.
Replaces characters in the specified range of this string builder with characters in the specified string value and returns this instance.
Since Kotlin
1.8Parameters
the beginning (inclusive) of the range to replace.
the end (exclusive) of the range to replace.
the string to replace with.
Throws
or IllegalArgumentException if startIndex is less than zero, greater than the length of this string builder, or startIndex > endIndex
.
Replaces characters in the specified range of this string builder with characters in the specified string value and returns this instance.
Since Kotlin
1.8Parameters
the beginning (inclusive) of the range to replace.
the end (exclusive) of the range to replace.
the string to replace with.
Throws
or IllegalArgumentException if startIndex is less than zero, greater than the length of this string builder, or startIndex > endIndex
.