André Bargull
0d0356d4a0
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
011e248afb
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
e6d82f6c5e
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
8d87ceda13
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
2130cb5dbf
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
64e2cbf62b
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
0730f55989
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
04e160dc7d
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
a35948080a
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
463b6931f2
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
104d5e6ccd
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
8e4b11994a
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
786de2c41a
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
d364302084
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
522eefbe31
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
d7fc551211
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
e12c3387e8
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
56c46d06a1
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
30ad309163
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
8d9076933e
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
c0ebed22d3
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
af49045026
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
2ca88d17d8
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
8a56f3b16b
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
3bfa529b3e
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
775f78734d
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
5bff5f16b2
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
072e80dc1d
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
e12f42285c
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
2594d2ac61
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
bcbfdb6d73
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
5b9420c13f
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
2da248e720
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
a62c197b64
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
2b25e46cab
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
ff9c1aa3c8
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
03c3a9ff0e
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
1c1c5bd5f9
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
ec908112f4
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
1faa3d40cf
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
4cf077692f
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
09431f9208
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
7241c1f9e9
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
e7ee97fb29
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
fca6bc6241
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
694649bec3
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
b4c3f94c5f
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
2349231e66
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
24dcdf0726
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
4037b90f13
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