Skip to content
This repository has been archived by the owner on Apr 15, 2023. It is now read-only.

Can codepoints map to unicode.Rune #69

Open
planetis-m opened this issue Feb 2, 2022 · 1 comment
Open

Can codepoints map to unicode.Rune #69

planetis-m opened this issue Feb 2, 2022 · 1 comment
Labels
enhancement New feature or request

Comments

@planetis-m
Copy link
Collaborator

It would be nice if we can replace codepoints arrays with seq[Rune]. Need to investigate if such conversion is possible.

@greenfork greenfork added the enhancement New feature or request label Feb 5, 2022
@planetis-m
Copy link
Collaborator Author

planetis-m commented Feb 18, 2022

So yes they can:

GetCodepointCount -> unicode.runeLen
GetCodepoint -> runeAt but it doesn't return 0x3f on error
CodepointToUTF8 -> $, toUtf8
TextCodepointsToUTF8 -> $

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants