diff options
| author | 2025-05-14 10:05:49 -0400 | |
|---|---|---|
| committer | 2025-05-15 15:32:43 -0400 | |
| commit | 3461a7750344fe7301cacf04f2f5e154ef70e966 (patch) | |
| tree | e2788807685c99b2579ea94627e6f2d8ff247b39 /src/unicode_tests.zig | |
| parent | Hooked up break test, some bugs squashed (diff) | |
| download | zg-3461a7750344fe7301cacf04f2f5e154ef70e966.tar.gz zg-3461a7750344fe7301cacf04f2f5e154ef70e966.tar.xz zg-3461a7750344fe7301cacf04f2f5e154ef70e966.zip | |
ReverseWordIterator passes conformance test
Ended up needing a clone of the codepoint iterator, so that WB4 can
ignore points in a matter compatible with backward search.
So I created a special SneakIterator which can return WBPs directly,
so as to skip ignorables. This is also needed for flag emoji, since
the odd-number case must be handle immediately. So we count back in
a WB4 compatible way, then store the count on the word iterator, and
voila.
Diffstat (limited to 'src/unicode_tests.zig')
0 files changed, 0 insertions, 0 deletions