toChars

Native
1.3
fun Char.Companion.toChars(codePoint: Int): CharArray

Converts the codepoint specified to a char array. If the codepoint is not supplementary, the method will return an array with one element otherwise it will return an array A with a high surrogate in A0 and a low surrogate in A1.