Bug 1632434 - Part 3: Update language tag mappings for CLDR 37. r=jwalden

Depends on D72910

Differential Revision: https://phabricator.services.mozilla.com/D72911
This commit is contained in:
André Bargull 2020-04-29 23:47:41 +00:00
Родитель 13060683c1
Коммит 2367c4a53b
2 изменённых файлов: 33 добавлений и 27 удалений

Просмотреть файл

@ -1,6 +1,6 @@
// Generated by make_intl_data.py. DO NOT EDIT.
// Version: CLDR-36.1
// URL: https://unicode.org/Public/cldr/36.1/core.zip
// Version: CLDR-37
// URL: https://unicode.org/Public/cldr/37/core.zip
#include "mozilla/Assertions.h"
#include "mozilla/Span.h"
@ -101,8 +101,8 @@ static bool IsCanonicallyCasedTransformType(mozilla::Span<const char> type) {
#endif
// Mappings from language subtags to preferred values.
// Derived from CLDR Supplemental Data, version 36.1.
// https://unicode.org/Public/cldr/36.1/core.zip
// Derived from CLDR Supplemental Data, version 37.
// https://unicode.org/Public/cldr/37/core.zip
bool js::intl::LanguageTag::languageMapping(LanguageSubtag& language) {
MOZ_ASSERT(IsStructurallyValidLanguageTag(language.span()));
MOZ_ASSERT(IsCanonicallyCasedLanguageTag(language.span()));
@ -209,8 +209,8 @@ bool js::intl::LanguageTag::languageMapping(LanguageSubtag& language) {
}
// Language subtags with complex mappings.
// Derived from CLDR Supplemental Data, version 36.1.
// https://unicode.org/Public/cldr/36.1/core.zip
// Derived from CLDR Supplemental Data, version 37.
// https://unicode.org/Public/cldr/37/core.zip
bool js::intl::LanguageTag::complexLanguageMapping(const LanguageSubtag& language) {
MOZ_ASSERT(IsStructurallyValidLanguageTag(language.span()));
MOZ_ASSERT(IsCanonicallyCasedLanguageTag(language.span()));
@ -231,8 +231,8 @@ bool js::intl::LanguageTag::complexLanguageMapping(const LanguageSubtag& languag
}
// Mappings from region subtags to preferred values.
// Derived from CLDR Supplemental Data, version 36.1.
// https://unicode.org/Public/cldr/36.1/core.zip
// Derived from CLDR Supplemental Data, version 37.
// https://unicode.org/Public/cldr/37/core.zip
bool js::intl::LanguageTag::regionMapping(RegionSubtag& region) {
MOZ_ASSERT(IsStructurallyValidRegionTag(region.span()));
MOZ_ASSERT(IsCanonicallyCasedRegionTag(region.span()));
@ -331,8 +331,8 @@ bool js::intl::LanguageTag::regionMapping(RegionSubtag& region) {
}
// Region subtags with complex mappings.
// Derived from CLDR Supplemental Data, version 36.1.
// https://unicode.org/Public/cldr/36.1/core.zip
// Derived from CLDR Supplemental Data, version 37.
// https://unicode.org/Public/cldr/37/core.zip
bool js::intl::LanguageTag::complexRegionMapping(const RegionSubtag& region) {
MOZ_ASSERT(IsStructurallyValidRegionTag(region.span()));
MOZ_ASSERT(IsCanonicallyCasedRegionTag(region.span()));
@ -354,8 +354,8 @@ bool js::intl::LanguageTag::complexRegionMapping(const RegionSubtag& region) {
}
// Language subtags with complex mappings.
// Derived from CLDR Supplemental Data, version 36.1.
// https://unicode.org/Public/cldr/36.1/core.zip
// Derived from CLDR Supplemental Data, version 37.
// https://unicode.org/Public/cldr/37/core.zip
void js::intl::LanguageTag::performComplexLanguageMappings() {
MOZ_ASSERT(IsStructurallyValidLanguageTag(language().span()));
MOZ_ASSERT(IsCanonicallyCasedLanguageTag(language().span()));
@ -390,8 +390,8 @@ void js::intl::LanguageTag::performComplexLanguageMappings() {
}
// Region subtags with complex mappings.
// Derived from CLDR Supplemental Data, version 36.1.
// https://unicode.org/Public/cldr/36.1/core.zip
// Derived from CLDR Supplemental Data, version 37.
// https://unicode.org/Public/cldr/37/core.zip
void js::intl::LanguageTag::performComplexRegionMappings() {
MOZ_ASSERT(IsStructurallyValidLanguageTag(language().span()));
MOZ_ASSERT(IsCanonicallyCasedLanguageTag(language().span()));
@ -610,8 +610,8 @@ static bool IsLessThan(const T& a, const U& b) {
}
// Mappings from variant subtags to preferred values.
// Derived from CLDR Supplemental Data, version 36.1.
// https://unicode.org/Public/cldr/36.1/core.zip
// Derived from CLDR Supplemental Data, version 37.
// https://unicode.org/Public/cldr/37/core.zip
bool js::intl::LanguageTag::performVariantMappings(JSContext* cx) {
// The variant subtags need to be sorted for binary search.
MOZ_ASSERT(std::is_sorted(variants_.begin(), variants_.end(),
@ -671,8 +671,8 @@ bool js::intl::LanguageTag::performVariantMappings(JSContext* cx) {
}
// Canonicalize grandfathered locale identifiers.
// Derived from CLDR Supplemental Data, version 36.1.
// https://unicode.org/Public/cldr/36.1/core.zip
// Derived from CLDR Supplemental Data, version 37.
// https://unicode.org/Public/cldr/37/core.zip
bool js::intl::LanguageTag::updateGrandfatheredMappings(JSContext* cx) {
// We're mapping regular grandfathered tags to non-grandfathered form here.
// Other tags remain unchanged.

Просмотреть файл

@ -2,8 +2,8 @@
// Generated by make_intl_data.py. DO NOT EDIT.
// Extracted from likelySubtags.xml.
// Derived from CLDR Supplemental Data, version 36.1.
// https://unicode.org/Public/cldr/36.1/core.zip
// Derived from CLDR Supplemental Data, version 37.
// https://unicode.org/Public/cldr/37/core.zip
var maxLikelySubtags = {
"aa": "aa-Latn-ET",
"aai": "aai-Latn-ZZ",
@ -225,6 +225,7 @@ var maxLikelySubtags = {
"bzh": "bzh-Latn-ZZ",
"bzw": "bzw-Latn-ZZ",
"ca": "ca-Latn-ES",
"cad": "cad-Latn-US",
"can": "can-Latn-ZZ",
"cbj": "cbj-Latn-ZZ",
"cch": "cch-Latn-NG",
@ -465,6 +466,7 @@ var maxLikelySubtags = {
"he": "he-Hebr-IL",
"hhy": "hhy-Latn-ZZ",
"hi": "hi-Deva-IN",
"hi-Latn": "hi-Latn-IN",
"hia": "hia-Latn-ZZ",
"hif": "hif-Latn-FJ",
"hig": "hig-Latn-ZZ",
@ -641,6 +643,7 @@ var maxLikelySubtags = {
"krs": "krs-Latn-ZZ",
"kru": "kru-Deva-IN",
"ks": "ks-Arab-IN",
"ks-Deva": "ks-Deva-IN",
"ksb": "ksb-Latn-TZ",
"ksd": "ksd-Latn-ZZ",
"ksf": "ksf-Latn-CM",
@ -841,7 +844,7 @@ var maxLikelySubtags = {
"mro": "mro-Mroo-BD",
"ms": "ms-Latn-MY",
"ms-CC": "ms-Arab-CC",
"ms-ID": "ms-Arab-ID",
"ms-ID": "ms-Latn-ID",
"mt": "mt-Latn-MT",
"mtc": "mtc-Latn-ZZ",
"mtf": "mtf-Latn-ZZ",
@ -1051,7 +1054,7 @@ var maxLikelySubtags = {
"sah": "sah-Cyrl-RU",
"saq": "saq-Latn-KE",
"sas": "sas-Latn-ID",
"sat": "sat-Latn-IN",
"sat": "sat-Olck-IN",
"sav": "sav-Latn-SN",
"saz": "saz-Saur-IN",
"sba": "sba-Latn-ZZ",
@ -1861,8 +1864,8 @@ var maxLikelySubtags = {
};
// Extracted from likelySubtags.xml.
// Derived from CLDR Supplemental Data, version 36.1.
// https://unicode.org/Public/cldr/36.1/core.zip
// Derived from CLDR Supplemental Data, version 37.
// https://unicode.org/Public/cldr/37/core.zip
var minLikelySubtags = {
"aa-Latn-DJ": "aa-DJ",
"aa-Latn-ET": "aa",
@ -2115,6 +2118,7 @@ var minLikelySubtags = {
"bzw-Latn-ZZ": "bzw",
"ca-Latn-AD": "ca-AD",
"ca-Latn-ES": "ca",
"cad-Latn-US": "cad",
"can-Latn-ZZ": "can",
"cbj-Latn-ZZ": "cbj",
"cch-Latn-NG": "cch",
@ -2431,6 +2435,7 @@ var minLikelySubtags = {
"he-Hebr-IL": "he",
"hhy-Latn-ZZ": "hhy",
"hi-Deva-IN": "hi",
"hi-Latn-IN": "hi-Latn",
"hi-Mahj-IN": "hi-Mahj",
"hia-Latn-ZZ": "hia",
"hif-Deva-FJ": "hif-Deva",
@ -2619,6 +2624,7 @@ var minLikelySubtags = {
"kru-Deva-IN": "kru",
"ks-Arab-GB": "ks-GB",
"ks-Arab-IN": "ks",
"ks-Deva-IN": "ks-Deva",
"ksb-Latn-TZ": "ksb",
"ksd-Latn-ZZ": "ksd",
"ksf-Latn-CM": "ksf",
@ -2821,8 +2827,9 @@ var minLikelySubtags = {
"mrj-Cyrl-RU": "mrj",
"mro-Mroo-BD": "mro",
"ms-Arab-CC": "ms-CC",
"ms-Arab-ID": "ms-ID",
"ms-Arab-ID": "ms-Arab-ID",
"ms-Latn-BN": "ms-BN",
"ms-Latn-ID": "ms-ID",
"ms-Latn-MY": "ms",
"mt-Latn-MT": "mt",
"mtc-Latn-ZZ": "mtc",
@ -3056,8 +3063,7 @@ var minLikelySubtags = {
"sah-Cyrl-RU": "sah",
"saq-Latn-KE": "saq",
"sas-Latn-ID": "sas",
"sat-Latn-IN": "sat",
"sat-Olck-IN": "sat-Olck",
"sat-Olck-IN": "sat",
"sav-Latn-SN": "sav",
"saz-Saur-IN": "saz",
"sba-Latn-ZZ": "sba",