kotlin.text.toCharArray

toCharArray

inline fun String.toCharArray(): CharArray

Platform and version requirements: JVM

Returns a new character array containing the characters from this string.

inline fun String.toCharArray(
    destination: CharArray, 
    destinationOffset: Int = 0, 
    startIndex: Int = 0, 
    endIndex: Int = length
): CharArray

Platform and version requirements: JVM

Copies characters from this string into the 登录查看完整内容