getChars

fun StringBuilder.getChars(srcBegin: Int, srcEnd: Int, dst: CharArray, dstBegin: Int)

Copies characters from this StringBuilder into dst.

Parameters

srcBegin

the starting index in this builder (inclusive)

srcEnd

the ending index in this builder (exclusive)

dst

the destination char array

dstBegin

the starting index in the destination array

Throws

if the indices are out of range