forked from scala-native/scala-native
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix String.offsetByCodePoints for unpaired surrogates (scala-native#3471
) Previously, String.offsetByCodePoints had an error when the offsetByCodePoints ends with the unpaired higher surrogate. This commit fix the bound check in the offsetByCodePoints not to check the next index is the lower surrogate after the higher surrogate.
- Loading branch information
1 parent
3dd595b
commit e51e4e7
Showing
2 changed files
with
28 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters