Commit Graph

200 Commits

Author SHA1 Message Date
André Bargull
89400bc676 Bug 1767961 - Part 4: Make TryCreateFromSkeleton a private method. r=platform-i18n-reviewers,dminor
`TryCreateFromSkeleton()` is only called internally in `DateTimeFormat`, so we
can make it a private method to reduce the API surface.

Differential Revision: https://phabricator.services.mozilla.com/D145583
2022-05-05 15:00:35 +00:00
André Bargull
d230c0f37f Bug 1767961 - Part 3: Remove no longer used TryCreateFromSkeleton() method. r=platform-i18n-reviewers,dminor
There aren't any callers left for `TryCreateFromSkeleton()` after part 2.

Depends on D145581

Differential Revision: https://phabricator.services.mozilla.com/D145582
2022-05-05 15:00:34 +00:00
André Bargull
fd7fe644c1 Bug 1767961 - Part 1: Remove hour-cycle override from TryCreateFromSkeleton public API. r=platform-i18n-reviewers,dminor
All callers were passing `Nothing()` for the hour-cycle override parameter, so
we might as well remove the parameter from the public API surface.

Differential Revision: https://phabricator.services.mozilla.com/D145580
2022-05-05 15:00:34 +00:00
André Bargull
a438ad3be5 Bug 1763783 - Part 10: Remove no longer needed workarounds for ICU-21154 and ICU-21155. r=platform-i18n-reviewers,jfkthame
ICU-21154 and ICU-21155 have been fixed in ICU 71, so we can remove this
workaround.

Depends on D143282

Differential Revision: https://phabricator.services.mozilla.com/D143283
2022-04-10 09:18:06 +00:00
André Bargull
6e0fa2bcd0 Bug 1763783 - Part 9: Update ICU draft API guards. r=platform-i18n-reviewers,jfkthame
- `UCAL_TZ_LOCAL_FORMER` and `UCAL_TZ_LOCAL_FORMER` are now stable.
- `UNUM_APPROXIMATELY_SIGN_FIELD` is a new draft API.

Depends on D143281

Differential Revision: https://phabricator.services.mozilla.com/D143282
2022-04-10 09:18:05 +00:00
André Bargull
55f12360b2 Bug 1763783 - Part 7: Update expected test results. r=platform-i18n-reviewers,jfkthame
Depends on D143279

Differential Revision: https://phabricator.services.mozilla.com/D143280
2022-04-10 09:18:04 +00:00
André Bargull
1348769010 Bug 1763783 - Part 4: Update language tags mappings to CLDR 41. r=platform-i18n-reviewers,jfkthame
Depends on D143276

Differential Revision: https://phabricator.services.mozilla.com/D143277
2022-04-10 09:18:03 +00:00
Yoshi Cheng-Hao Huang
668a7e650c Bug 1746837 - Part 1: Include "mozilla/intl/MeasureUnitGenerated.h" in Spidermonkey. r=platform-i18n-reviewers,tcampbell,dminor
Differential Revision: https://phabricator.services.mozilla.com/D134303
2021-12-21 08:43:10 +00:00
Greg Tatum
b063a73502 Bug 1745564 - Change the location of the calendar Span in DisplayNames; r=dminor
Differential Revision: https://phabricator.services.mozilla.com/D133656
2021-12-13 21:43:15 +00:00
Greg Tatum
c2a22c8193 Bug 1719751 - Clean up final ICU details in CommonFunctions; r=anba,platform-i18n-reviewers,dminor
Differential Revision: https://phabricator.services.mozilla.com/D131019
2021-12-09 15:52:43 +00:00
Greg Tatum
0d5fd9861f Bug 1719735 - Create a unified DisplayNames API; r=platform-i18n-reviewers,dminor
Differential Revision: https://phabricator.services.mozilla.com/D130799
2021-12-09 15:52:42 +00:00
Dan Minor
c43b15027c Bug 1734932 - Add intl::NumberParser; r=platform-i18n-reviewers,gregtatum
Awkwardly, this relies upon a different ICU4C NumberFormat API than
the existing intl::NumberFormat implementation, so it seems best to
have this live in a separate class.

Differential Revision: https://phabricator.services.mozilla.com/D133124
2021-12-09 15:26:20 +00:00
Yoshi Cheng-Hao Huang
22939a19ea Bug 1719543 - Part 1: Add Bidi::GetBaseDirection. r=platform-i18n-reviewers,gregtatum
Differential Revision: https://phabricator.services.mozilla.com/D133066
2021-12-08 11:10:35 +00:00
Yoshi Cheng-Hao Huang
ef21834124 Bug 1719548 - Part 1: Add a mozilla::intl::IDNA class. r=platform-i18n-reviewers,gregtatum
Differential Revision: https://phabricator.services.mozilla.com/D132571
2021-12-08 11:07:41 +00:00
Dan Minor
237b40ae17 Bug 1719554 - Unify unicode::Script as intl::Script; r=platform-i18n-reviewers,gregtatum
Differential Revision: https://phabricator.services.mozilla.com/D132278
2021-12-06 18:15:50 +00:00
Dan Minor
ef775171c2 Bug 1719554 - Unify nsCharType as intl::BidiClass; r=platform-i18n-reviewers,jfkthame,gregtatum
Differential Revision: https://phabricator.services.mozilla.com/D132275
2021-12-06 18:15:49 +00:00
Dan Minor
1244a99641 Bug 1719554 - Unify most of nsUnicodeProperties.h; r=platform-i18n-reviewers,jfkthame,gregtatum,necko-reviewers,valentin
This unifies most of the calls in nsUnicodeProperties.h. CharType and Script
will be handled in subsequent patches on this bug.

Differential Revision: https://phabricator.services.mozilla.com/D132273
2021-12-06 18:15:49 +00:00
Butkovits Atila
c0faf95b7f Backed out 3 changesets (bug 1719554) for causing bustages complaining about gfxTextRun.cpp.
Backed out changeset 6181e40d4da1 (bug 1719554)
Backed out changeset c261ede6ae81 (bug 1719554)
Backed out changeset 221ec418475c (bug 1719554)
2021-12-04 00:58:15 +02:00
Dan Minor
438c13a7c2 Bug 1719554 - Unify unicode::Script as intl::Script; r=platform-i18n-reviewers,gregtatum
Differential Revision: https://phabricator.services.mozilla.com/D132278
2021-12-03 20:49:32 +00:00
Dan Minor
1219282759 Bug 1719554 - Unify nsCharType as intl::BidiClass; r=platform-i18n-reviewers,jfkthame,gregtatum
Differential Revision: https://phabricator.services.mozilla.com/D132275
2021-12-03 20:49:31 +00:00
Dan Minor
fed56cd5d8 Bug 1719554 - Unify most of nsUnicodeProperties.h; r=platform-i18n-reviewers,jfkthame,gregtatum,necko-reviewers,valentin
This unifies most of the calls in nsUnicodeProperties.h. CharType and Script
will be handled in subsequent patches on this bug.

Differential Revision: https://phabricator.services.mozilla.com/D132273
2021-12-03 20:49:31 +00:00
Greg Tatum
b41ae038e4 Bug 1715892 - Add a buffer adapter for nsTString; r=platform-i18n-reviewers,dminor
Differential Revision: https://phabricator.services.mozilla.com/D131668
2021-12-01 17:41:36 +00:00
Greg Tatum
9d66d95991 Bug 1719735 - Add a UTF-16 span overload for FillBuffer; r=platform-i18n-reviewers,dminor
Differential Revision: https://phabricator.services.mozilla.com/D130798
2021-12-01 17:41:36 +00:00
Greg Tatum
69d7aabbe1 Bug 1719735 - Have IcuLocale take a null-terminated Span; r=platform-i18n-reviewers,dminor
This simplifies the call sites that take Span locale, and ensures null
termination.

Differential Revision: https://phabricator.services.mozilla.com/D131534
2021-12-01 17:41:36 +00:00
Marian-Vasile Laza
86209bfa11 Backed out 6 changesets (bug 1715892, bug 1719735) for causing bc test failures. CLOSED TREE
Backed out changeset 196952bd8c9c (bug 1715892)
Backed out changeset 9105fe01c025 (bug 1715892)
Backed out changeset 4c15d1a24ccd (bug 1715892)
Backed out changeset 2c328b84285f (bug 1715892)
Backed out changeset 8fcdcdf44b62 (bug 1719735)
Backed out changeset c48f398e301f (bug 1719735)
2021-11-30 23:30:59 +02:00
Greg Tatum
514f9f2c15 Bug 1715892 - Add a buffer adapter for nsTString; r=platform-i18n-reviewers,dminor
Differential Revision: https://phabricator.services.mozilla.com/D131668
2021-11-30 19:05:57 +00:00
Greg Tatum
d94734c164 Bug 1719735 - Add a UTF-16 span overload for FillBuffer; r=platform-i18n-reviewers,dminor
Differential Revision: https://phabricator.services.mozilla.com/D130798
2021-11-30 19:05:57 +00:00
Greg Tatum
67cee4917d Bug 1719735 - Have IcuLocale take a null-terminated Span; r=platform-i18n-reviewers,dminor
This simplifies the call sites that take Span locale, and ensures null
termination.

Differential Revision: https://phabricator.services.mozilla.com/D131534
2021-11-30 19:05:56 +00:00
Dan Minor
9f99fbc70c Bug 1733659 - Clean up naming style in Locale; r=platform-i18n-reviewers,gregtatum
Differential Revision: https://phabricator.services.mozilla.com/D131511
2021-11-23 12:36:41 +00:00
Sandor Molnar
81d96df817 Backed out 2 changesets (bug 1733659) for causing build bustages. CLOSED TREE
Backed out changeset 9e23aa79fda9 (bug 1733659)
Backed out changeset e316768591c0 (bug 1733659)
2021-11-22 20:51:20 +02:00
Dan Minor
c06b3b5ad6 Bug 1733659 - Clean up naming style in Locale; r=platform-i18n-reviewers,gregtatum
Differential Revision: https://phabricator.services.mozilla.com/D131511
2021-11-22 18:32:41 +00:00
Yoshi Cheng-Hao Huang
9c1d7d4f7b Bug 1719545 - Part 1: Add Script::GetExtensions. r=anba,platform-i18n-reviewers,gregtatum
Differential Revision: https://phabricator.services.mozilla.com/D130975
2021-11-19 13:20:22 +00:00
Dan Minor
fb436174b4 Bug 1728121 - Use std::is_same_v in unified intl; r=platform-i18n-reviewers,gregtatum
Differential Revision: https://phabricator.services.mozilla.com/D131262
2021-11-17 15:05:52 +00:00
André Bargull
3e4c449045 Bug 1741222: Add include guards to MeasureUnitGenerated.h files. r=allstarschh
Add include guard and place the definitions into the correct namespace.

The name had to be changed to `SimpleMeasureUnit` to avoid a conflict with the
existing `mozilla::intl::MeasureUnit` class.

Depends on D131244

Differential Revision: https://phabricator.services.mozilla.com/D131245
2021-11-17 08:55:08 +00:00
André Bargull
ba2cbd85c8 Bug 1738422 - Part 13: Remove no longer needed ICU workarounds and conditional code. r=platform-i18n-reviewers,dminor
Number range formatting is stable in ICU 70, which means we can remove
`MOZ_INTL_HAS_NUMBER_RANGE_FORMAT` and `MOZ_INTL_PLURAL_RULES_HAS_SELECT_RANGE`.

The following bugs have been fixed in ICU 70, so we can remove the workarounds
for them:
- https://unicode-org.atlassian.net/browse/ICU-21109
- https://unicode-org.atlassian.net/browse/ICU-21622
- https://unicode-org.atlassian.net/browse/ICU-21641
- https://unicode-org.atlassian.net/browse/ICU-21683
- https://unicode-org.atlassian.net/browse/ICU-21685
- https://unicode-org.atlassian.net/browse/ICU-21686

Depends on D129934

Differential Revision: https://phabricator.services.mozilla.com/D129935
2021-11-16 17:02:59 +00:00
André Bargull
63725e1a0c Bug 1738422 - Part 11: Update expected test results. r=platform-i18n-reviewers,dminor
Depends on D129932

Differential Revision: https://phabricator.services.mozilla.com/D129933
2021-11-16 17:02:58 +00:00
André Bargull
4c476e0280 Bug 1738422 - Part 10: Remove approximately sign detection code. r=platform-i18n-reviewers,dminor
This is no longer necessary after part 9.

Depends on D129931

Differential Revision: https://phabricator.services.mozilla.com/D129932
2021-11-16 17:02:58 +00:00
André Bargull
63f4172682 Bug 1738422 - Part 5: Update language tag mappings. r=platform-i18n-reviewers,dminor
Update language tag mappings by running `./make_intl_data.py langtags core.zip`.

The direct invocation `./make_intl_data.py langtags` doesn't work, because
"https://unicode.org/Public/cldr/40/core.zip" was incorrectly generated and
contains another "core.zip" file within "core.zip".

Depends on D129926

Differential Revision: https://phabricator.services.mozilla.com/D129927
2021-11-16 17:02:55 +00:00
Greg Tatum
69f3ddd0a8 Bug 1738057 - Split out BidiEmbeddingLevel into its own file; r=platform-i18n-reviewers,dminor
This should speed up re-compile times, as mozilla/intl/Bidi.h will only
be included in a few places.

Differential Revision: https://phabricator.services.mozilla.com/D129662
2021-11-16 15:11:58 +00:00
Andi-Bogdan Postelnicu
86033e3557 Bug 1519636 - Reformat recent changes to the Google coding style. r=firefox-build-system-reviewers,mhentges,sylvestre
Reformat with clang-format version 12.0.1 (taskcluster-FYV2l5wGTseBAhiqf8cxfQ)

Differential Revision: https://phabricator.services.mozilla.com/D131114
2021-11-16 08:07:29 +00:00
Andreas Farre
cb8c235961 Bug 1733963 - Part 2: Add BitSet tests. r=glandium
Depends on D127447

Differential Revision: https://phabricator.services.mozilla.com/D127448
2021-11-09 12:34:51 +00:00
Brad Werth
c7967c8644 Bug 1738107 Part 2: Remove deprecated std::iterator from ICU4CGlue. r=gregtatum
Differential Revision: https://phabricator.services.mozilla.com/D130314
2021-11-09 05:02:25 +00:00
Marian-Vasile Laza
45fe0b749d Backed out 3 changesets (bug 1733963) for causing build bustages on TestEnumSet.cpp. CLOSED TREE
Backed out changeset 83b804a449c2 (bug 1733963)
Backed out changeset 434e10a0c39a (bug 1733963)
Backed out changeset d7d88b948f71 (bug 1733963)
2021-11-08 19:42:46 +02:00
Andreas Farre
6c7c506630 Bug 1733963 - Part 2: Add BitSet tests. r=glandium
Depends on D127447

Differential Revision: https://phabricator.services.mozilla.com/D127448
2021-11-08 16:01:26 +00:00
Marian-Vasile Laza
025bf42ee6 Backed out 3 changesets (bug 1733963) for causing build bustages on SyncedContext.h. CLOSED TREE
Backed out changeset de5c7a16378c (bug 1733963)
Backed out changeset f5f3a27abf60 (bug 1733963)
Backed out changeset cc3a0603f88a (bug 1733963)
2021-11-05 20:54:33 +02:00
Andreas Farre
5ab6ab41d5 Bug 1733963 - Part 2: Add BitSet tests. r=glandium
Depends on D127447

Differential Revision: https://phabricator.services.mozilla.com/D127448
2021-11-05 17:23:02 +00:00
Yoshi Cheng-Hao Huang
d21df9a604 Bug 1737814 - Part 3: Simplify parts data structure. r=platform-i18n-reviewers,anba,gregtatum
Differential Revision: https://phabricator.services.mozilla.com/D129563
2021-11-01 14:23:23 +00:00
Yoshi Cheng-Hao Huang
c3a34b3639 Bug 1737814 - Part 2: ListFormat.FormatToParts doesn't take a callback. r=platform-i18n-reviewers,anba,gregtatum
The caller now will provide a buffer, which owns the memory pointed by the span.

Differential Revision: https://phabricator.services.mozilla.com/D129562
2021-11-01 14:23:22 +00:00
Yoshi Cheng-Hao Huang
fca3a354f0 Bug 1737814 - Part 1: Add a AutoFormatResult class. r=platform-i18n-reviewers,anba,gregtatum
This AutoFormatResult class could be shared later by ListFormat.

Differential Revision: https://phabricator.services.mozilla.com/D129561
2021-11-01 14:23:22 +00:00
André Bargull
e3fe95e6fc Bug 1736805: Register written normalised length. r=platform-i18n-reviewers,gregtatum
Differential Revision: https://phabricator.services.mozilla.com/D129428
2021-10-26 07:21:13 +00:00