Join Slack
Powered by
I’m not hitting the maximum codepoint value at all
# kotlin-native
a
andrew
04/19/2019, 1:24 AM
I’m not hitting the maximum codepoint value at all
o
olonho
04/19/2019, 5:34 AM
That’s how UTF-16 encodes some values as surrogate pairs, see
https://stackoverflow.com/questions/22121184/difference-between-composite-characters-and-surrogate-pairs
a
andrew
04/19/2019, 12:20 PM
How do I make a surrogate pair using Kotlin's int toChar() method?
andrew
04/19/2019, 1:08 PM
I found the math to split an int into a surrogate pair. Turns out it isn’t widely available 🤷🏻♂️
2
Views
Open in Slack
Previous
Next