kotlin-stdlib / kotlin.text / toCodePoint toCodePoint Native 1.3 fun Char.Companion.toCodePoint(high: Char, low: Char): Int Converts a surrogate pair to a unicode code point. Doesn't validate that the characters are a valid surrogate pair.