toCharArray
Copies characters from this string builder into the destination character array.
Since Kotlin
1.4Parameters
the array to copy to.
the position in the array to copy to, 0 by default.
the beginning (inclusive) of the range to copy, 0 by default.
the end (exclusive) of the range to copy, length of this string builder by default.
Throws
when the subrange doesn't fit into the destination array starting at the specified destinationOffset, or when that index is out of the destination array indices range.
Copies characters from this string builder into the destination character array.
Since Kotlin
1.4Parameters
the array to copy to.
the position in the array to copy to, 0 by default.
the beginning (inclusive) of the range to copy, 0 by default.
the end (exclusive) of the range to copy, length of this string builder by default.
Throws
when the subrange doesn't fit into the destination array starting at the specified destinationOffset, or when that index is out of the destination array indices range.