gecko-dev/intl
Ting-Yu Lin 653f4b3694 Bug 1745113 Part 5 - Make grapheme cluster break iterators implement SegmentIteratorUtf16, and adapt the callers. r=necko-reviewers,jfkthame,kershaw
This is the main patch for the bug. It aims to change the grapheme cluster
break's `Next()` API by implementing SegmentIteratorUtf16 interface, and adapt
the callers. It shouldn't change the behavior.

While rewriting the caller, one caveat worth mentioning is the loop termination
condition. If the old code relies on `!AtEnd()` as the loop termination
condition, and it advances the iterator at the end of the loop, it meant
to *skip* its logic when the break position is at the end of the string. For
example, see the `mozTXTToHTMLConv::NumberOfMatches`.

This patch also hooks grapheme cluster break iterator into
Segmenter::TryCreate() interface.

Existing test coverage for the file changed:
- netwerk/test/unit/test_mozTXTToHTMLConv.js
- layout/reftests/forms/input/file/dynamic-max-width.html

Differential Revision: https://phabricator.services.mozilla.com/D135643
2022-01-13 18:36:04 +00:00
..
benchmarks Bug 1717060 - Create a micro benchmark for Intl.NumberFormat; r=nordzilla 2021-06-24 13:06:26 +00:00
build Bug 1686616 - register all Services.py services with components.conf. r=kmag,necko-reviewers,valentin 2021-02-18 13:26:28 +00:00
components Bug 1746837 - Part 1: Include "mozilla/intl/MeasureUnitGenerated.h" in Spidermonkey. r=platform-i18n-reviewers,tcampbell,dminor 2021-12-21 08:43:10 +00:00
docs Bug 1719746 - Update make_intl_data.py to generate LocaleGenerated.cpp; r=anba,gregtatum 2021-10-18 13:38:23 +00:00
encoding_glue Bug 1701828 - meta charset rewrite. r=smaug 2021-12-08 11:34:20 +00:00
gtest Bug 1603127 - Replaced mozilla::Tuple with std::tuple and applied structured bindings in mozilla/Encoding.h. r=hsivonen 2021-11-08 08:14:00 +00:00
hyphenation Bug 1738401 - Remove -Wno-shadow warning suppressions. r=firefox-build-system-reviewers,glandium 2021-12-01 06:40:04 +00:00
icu Bug 1738422 - Part 9: Add a separate UNumberFormatFields constant for the approximately sign. r=platform-i18n-reviewers,dminor 2021-11-16 17:02:57 +00:00
icu-patches Bug 1738422 - Part 9: Add a separate UNumberFormatFields constant for the approximately sign. r=platform-i18n-reviewers,dminor 2021-11-16 17:02:57 +00:00
l10n Bug 1748718 - Part 3: Remove now-unnecessary xpidl constant casts, r=emilio 2022-01-07 20:35:15 +00:00
locale Bug 1715892 - Add thread safety notice and asserts for AppDateTimeFormat; r=platform-i18n-reviewers,dminor 2021-12-01 17:41:38 +00:00
locales Bug 1240277 - Add hyphenation patterns for Indic languages. r=platform-i18n-reviewers,dminor 2021-12-13 14:20:06 +00:00
lwbrk Bug 1745113 Part 5 - Make grapheme cluster break iterators implement SegmentIteratorUtf16, and adapt the callers. r=necko-reviewers,jfkthame,kershaw 2022-01-13 18:36:04 +00:00
strres Bug 1738401 - Remove -Wno-shadow warning suppressions. r=firefox-build-system-reviewers,glandium 2021-12-01 06:40:04 +00:00
tzdata Bug 1737765 - Part 1: Update tzdata in ICU data files to 2021a3. r=platform-i18n-reviewers,gregtatum 2021-10-26 13:50:53 +00:00
uconv Bug 1680139 - Add the ability for unEscapeURIForUI to disable re-escaping IDN blocklisted characters. r=m_kato 2021-12-23 03:34:13 +00:00
unicharutil Bug 1745113 Part 5 - Make grapheme cluster break iterators implement SegmentIteratorUtf16, and adapt the callers. r=necko-reviewers,jfkthame,kershaw 2022-01-13 18:36:04 +00:00
Encoding.h Bug 1603127 - Replaced mozilla::Tuple with std::tuple and applied structured bindings in mozilla/Encoding.h. r=hsivonen 2021-11-08 08:14:00 +00:00
EncodingDetector.h Bug 1686463 - Gather telemetry about automatic encoding detection outcomes. r=chutten,emk 2021-01-24 00:11:07 +00:00
ICU4X.md Bug 1736907 - Add a build flag to experimentally build with ICU4X static data; r=platform-i18n-reviewers,dminor 2021-11-16 15:09:09 +00:00
icu_sources_data.py Bug 1686052 - Part 2: Update ICU build script to use new "sources.txt" file. r=jwalden 2021-06-04 17:42:09 +00:00
moz.build Bug 1713627 - Remove code obsoleted by the replacing the Text Encoding menu with one item. r=jaws,emk 2021-06-21 12:09:01 +00:00
update-icu.sh Bug 1738422 - Part 9: Add a separate UNumberFormatFields constant for the approximately sign. r=platform-i18n-reviewers,dminor 2021-11-16 17:02:57 +00:00
update-icu4x.sh Bug 1736907 - Add a build flag to experimentally build with ICU4X static data; r=platform-i18n-reviewers,dminor 2021-11-16 15:09:09 +00:00
update-tzdata.sh