-
-
Notifications
You must be signed in to change notification settings - Fork 413
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
[Merged by Bors] - Implement Intl.Segmenter
#2840
Conversation
Test262 conformance changes
Fixed tests (154):
|
Codecov Report
@@ Coverage Diff @@
## main #2840 +/- ##
==========================================
- Coverage 51.38% 51.09% -0.30%
==========================================
Files 417 419 +2
Lines 41328 41602 +274
==========================================
+ Hits 21238 21258 +20
- Misses 20090 20344 +254
... and 6 files with indirect coverage changes Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me! :)
bors r+ |
The new ICU4X release stabilized the `icu_segmenter` component, so this PR implements `Intl.Segmenter` using that as a base. Also, I opted for importing `itertools` instead of copy-pasting the implementation of `TupleWindows` because its design is a lot more complex than `Intersperse`, which we copy-pasted previously. Though, I disabled all `std` features of `itertools` to make it a lot more lightweight, so it shouldn't make much difference in compilation times.
Pull request successfully merged into main. Build succeeded: |
Intl.Segmenter
Intl.Segmenter
The new ICU4X release stabilized the
icu_segmenter
component, so this PR implementsIntl.Segmenter
using that as a base.Also, I opted for importing
itertools
instead of copy-pasting the implementation ofTupleWindows
because its design is a lot more complex thanIntersperse
, which we copy-pasted previously. Though, I disabled allstd
features ofitertools
to make it a lot more lightweight, so it shouldn't make much difference in compilation times.