Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Iterate over UTF-16 codepoints instead of code units #56

Merged
merged 2 commits into from
Aug 19, 2024

Conversation

1ec5
Copy link
Contributor

@1ec5 1ec5 commented Aug 10, 2024

Updated the demo page to iterate over full UTF-16 codepoints instead of UTF-16 code units. This is necessary for correctly representing characters beyond U+FFFF without erroring out. Prepended a place name in demotic Vietnamese characters to the sample text, including U+21516.

@mourner
Copy link
Member

mourner commented Aug 18, 2024

Needs a small lint fix. Also not sure how the iterator approach performs (might be a bottleneck) but I guess it's not that important for the demo code.

@mourner mourner merged commit 6a66ff0 into mapbox:main Aug 19, 2024
1 check passed
@1ec5 1ec5 deleted the codepoints branch August 19, 2024 18:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants