toCodePoint

Native
1.3
@ExperimentalNativeApi fun Char.Companion.toCodePoint(
    high: Char,
    low: Char
): Int

(source)

Converts a surrogate pair to a unicode code point. Doesn't validate that the characters are a valid surrogate pair.

Note that this function is unstable. In the future it could be deprecated in favour of an overload that would return a CodePoint type.