You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
c.EnumerateRunes() => I could probably use Rune.GetRuneAt with a while loop to mimic this API
I think the most difficult part will be to get the rune.Value because we need to find how to convert a character/string char into this value.
Once this is done, adding the different properties / static member should not be too difficult. For JavaScript, this file can be a source of inspiration on how to deal with unicode characters especially how to detect the ones using 2 bytes in UTF 16.
Description
For a library I am working on, I will need the
System.Text.Rune
API.At the moment here is the API I am using:
rune.*
are instance methods / propertiesRune.GetRuneAt
rune.ToString()
rune.Utf16SequenceLength
rune.Value
c.EnumerateRunes()
=> I could probably useRune.GetRuneAt
with a while loop to mimic this APII think the most difficult part will be to get the
rune.Value
because we need to find how to convert a character/string char into this value.Once this is done, adding the different properties / static member should not be too difficult. For JavaScript, this file can be a source of inspiration on how to deal with unicode characters especially how to detect the ones using 2 bytes in UTF 16.
I am creating this issue just to keep track of this future work.
The text was updated successfully, but these errors were encountered: