if (U_FAILURE(sts)) {
break;
}
- // TODO: For now we skip loading entries mapping to metazone short ids,
- // which have 4 characters.
- if (isTZ && uBcpTypeId.length() == 4) {
- continue;
- }
// empty value indicates that BCP type is same with the legacy type.
const char* bcpTypeId = legacyTypeId;
<target name="setup" depends="init">
<mkdir dir="${env.CLDR_TMP_DIR}"/> <!-- make sure parent dir exists -->
<condition property="cldrprod.exists">
- <available file="${cldr.prod.dir}" type="dir"/>
+ <available file="${cldr.prod.dir}/common" type="dir"/>
</condition>
</target>
<target name="cleanprod" depends="init, setup" if="cldrprod.exists">
- <delete dir="${cldr.prod.dir}" />
+ <delete dir="${cldr.prod.dir}/common" />
+ <delete dir="${cldr.prod.dir}/keyboards" />
</target>
<target name="proddata" depends="init,setup" unless="cldrprod.exists">
<echo message="Rebuilding ${cldr.prod.dir} - takes a while!"/>
001{"America/Whitehorse"}
}
}
+ metazoneIds{
+ acre{"Acre"}
+ afce{"Africa_Central"}
+ afea{"Africa_Eastern"}
+ afgh{"Afghanistan"}
+ afso{"Africa_Southern"}
+ afwe{"Africa_Western"}
+ alam{"Almaty"}
+ alas{"Alaska"}
+ amaz{"Amazon"}
+ amce{"America_Central"}
+ amea{"America_Eastern"}
+ ammo{"America_Mountain"}
+ ampa{"America_Pacific"}
+ anad{"Anadyr"}
+ apia{"Apia"}
+ aqta{"Aqtau"}
+ aqto{"Aqtobe"}
+ arab{"Arabian"}
+ arge{"Argentina"}
+ arme{"Armenia"}
+ arwe{"Argentina_Western"}
+ atla{"Atlantic"}
+ auce{"Australia_Central"}
+ aucw{"Australia_CentralWestern"}
+ auea{"Australia_Eastern"}
+ auwe{"Australia_Western"}
+ azer{"Azerbaijan"}
+ azor{"Azores"}
+ bang{"Bangladesh"}
+ bhut{"Bhutan"}
+ boli{"Bolivia"}
+ bras{"Brasilia"}
+ brun{"Brunei"}
+ case{"Casey"}
+ cave{"Cape_Verde"}
+ cham{"Chamorro"}
+ chat{"Chatham"}
+ chil{"Chile"}
+ chin{"China"}
+ choi{"Choibalsan"}
+ chri{"Christmas"}
+ coco{"Cocos"}
+ colo{"Colombia"}
+ cook{"Cook"}
+ cuba{"Cuba"}
+ davi{"Davis"}
+ dumo{"DumontDUrville"}
+ east{"Easter"}
+ eati{"East_Timor"}
+ ecua{"Ecuador"}
+ euce{"Europe_Central"}
+ euea{"Europe_Eastern"}
+ eufe{"Europe_Further_Eastern"}
+ euwe{"Europe_Western"}
+ falk{"Falkland"}
+ fiji{"Fiji"}
+ frgu{"French_Guiana"}
+ frso{"French_Southern"}
+ gala{"Galapagos"}
+ gamb{"Gambier"}
+ geor{"Georgia"}
+ giis{"Gilbert_Islands"}
+ grea{"Greenland_Eastern"}
+ grwe{"Greenland_Western"}
+ guam{"Guam"}
+ gulf{"Gulf"}
+ guya{"Guyana"}
+ haal{"Hawaii_Aleutian"}
+ hoko{"Hong_Kong"}
+ hovd{"Hovd"}
+ ince{"Indonesia_Central"}
+ indi{"India"}
+ indo{"Indochina"}
+ inea{"Indonesia_Eastern"}
+ inoc{"Indian_Ocean"}
+ inwe{"Indonesia_Western"}
+ iran{"Iran"}
+ irku{"Irkutsk"}
+ isra{"Israel"}
+ japa{"Japan"}
+ kaea{"Kazakhstan_Eastern"}
+ kamc{"Kamchatka"}
+ kawe{"Kazakhstan_Western"}
+ kore{"Korea"}
+ kosr{"Kosrae"}
+ kras{"Krasnoyarsk"}
+ kyrg{"Kyrgystan"}
+ lank{"Lanka"}
+ liis{"Line_Islands"}
+ loho{"Lord_Howe"}
+ maca{"Macau"}
+ macq{"Macquarie"}
+ maga{"Magadan"}
+ mais{"Marshall_Islands"}
+ mala{"Malaysia"}
+ mald{"Maldives"}
+ marq{"Marquesas"}
+ maur{"Mauritius"}
+ maws{"Mawson"}
+ meno{"Mexico_Northwest"}
+ mepa{"Mexico_Pacific"}
+ mgmt{"GMT"}
+ mong{"Mongolia"}
+ mosc{"Moscow"}
+ myan{"Myanmar"}
+ naur{"Nauru"}
+ neca{"New_Caledonia"}
+ nepa{"Nepal"}
+ newf{"Newfoundland"}
+ neze{"New_Zealand"}
+ niue{"Niue"}
+ noma{"North_Mariana"}
+ norf{"Norfolk"}
+ noro{"Noronha"}
+ novo{"Novosibirsk"}
+ omsk{"Omsk"}
+ paki{"Pakistan"}
+ pala{"Palau"}
+ pang{"Papua_New_Guinea"}
+ para{"Paraguay"}
+ peru{"Peru"}
+ phil{"Philippines"}
+ phis{"Phoenix_Islands"}
+ pimi{"Pierre_Miquelon"}
+ pitc{"Pitcairn"}
+ pona{"Ponape"}
+ pyon{"Pyongyang"}
+ qyzy{"Qyzylorda"}
+ reun{"Reunion"}
+ roth{"Rothera"}
+ sakh{"Sakhalin"}
+ sama{"Samara"}
+ samo{"Samoa"}
+ seyc{"Seychelles"}
+ sing{"Singapore"}
+ soge{"South_Georgia"}
+ solo{"Solomon"}
+ suri{"Suriname"}
+ syow{"Syowa"}
+ tahi{"Tahiti"}
+ taip{"Taipei"}
+ taji{"Tajikistan"}
+ toke{"Tokelau"}
+ tong{"Tonga"}
+ truk{"Truk"}
+ turk{"Turkmenistan"}
+ tuva{"Tuvalu"}
+ urug{"Uruguay"}
+ uzbe{"Uzbekistan"}
+ vanu{"Vanuatu"}
+ vene{"Venezuela"}
+ vlad{"Vladivostok"}
+ volg{"Volgograd"}
+ vost{"Vostok"}
+ wake{"Wake"}
+ wall{"Wallis"}
+ yaku{"Yakutsk"}
+ yeka{"Yekaterinburg"}
+ }
metazoneInfo{
"Africa:Abidjan"{
{
"Pacific:Truk"{"fmtkk"}
"Pacific:Wake"{"umawk"}
"Pacific:Wallis"{"wfmau"}
- Acre{"acre"}
- Afghanistan{"afgh"}
- Africa_Central{"afce"}
- Africa_Eastern{"afea"}
- Africa_Southern{"afso"}
- Africa_Western{"afwe"}
- Alaska{"alas"}
- Almaty{"alam"}
- Amazon{"amaz"}
- America_Central{"amce"}
- America_Eastern{"amea"}
- America_Mountain{"ammo"}
- America_Pacific{"ampa"}
- Anadyr{"anad"}
- Apia{"apia"}
- Aqtau{"aqta"}
- Aqtobe{"aqto"}
- Arabian{"arab"}
- Argentina{"arge"}
- Argentina_Western{"arwe"}
- Armenia{"arme"}
- Atlantic{"atla"}
- Australia_Central{"auce"}
- Australia_CentralWestern{"aucw"}
- Australia_Eastern{"auea"}
- Australia_Western{"auwe"}
- Azerbaijan{"azer"}
- Azores{"azor"}
- Bangladesh{"bang"}
- Bhutan{"bhut"}
- Bolivia{"boli"}
- Brasilia{"bras"}
- Brunei{"brun"}
CST6CDT{"cst6cdt"}
- Cape_Verde{"cave"}
- Casey{"case"}
- Chamorro{"cham"}
- Chatham{"chat"}
- Chile{"chil"}
- China{"chin"}
- Choibalsan{"choi"}
- Christmas{"chri"}
- Cocos{"coco"}
- Colombia{"colo"}
- Cook{"cook"}
- Cuba{"cuba"}
- Davis{"davi"}
- DumontDUrville{"dumo"}
EST5EDT{"est5edt"}
- East_Timor{"eati"}
- Easter{"east"}
- Ecuador{"ecua"}
- Europe_Central{"euce"}
- Europe_Eastern{"euea"}
- Europe_Further_Eastern{"eufe"}
- Europe_Western{"euwe"}
- Falkland{"falk"}
- Fiji{"fiji"}
- French_Guiana{"frgu"}
- French_Southern{"frso"}
- GMT{"mgmt"}
- Galapagos{"gala"}
- Gambier{"gamb"}
- Georgia{"geor"}
- Gilbert_Islands{"giis"}
- Greenland_Eastern{"grea"}
- Greenland_Western{"grwe"}
- Guam{"guam"}
- Gulf{"gulf"}
- Guyana{"guya"}
- Hawaii_Aleutian{"haal"}
- Hong_Kong{"hoko"}
- Hovd{"hovd"}
- India{"indi"}
- Indian_Ocean{"inoc"}
- Indochina{"indo"}
- Indonesia_Central{"ince"}
- Indonesia_Eastern{"inea"}
- Indonesia_Western{"inwe"}
- Iran{"iran"}
- Irkutsk{"irku"}
- Israel{"isra"}
- Japan{"japa"}
- Kamchatka{"kamc"}
- Kazakhstan_Eastern{"kaea"}
- Kazakhstan_Western{"kawe"}
- Korea{"kore"}
- Kosrae{"kosr"}
- Krasnoyarsk{"kras"}
- Kyrgystan{"kyrg"}
- Lanka{"lank"}
- Line_Islands{"liis"}
- Lord_Howe{"loho"}
MST7MDT{"mst7mdt"}
- Macau{"maca"}
- Macquarie{"macq"}
- Magadan{"maga"}
- Malaysia{"mala"}
- Maldives{"mald"}
- Marquesas{"marq"}
- Marshall_Islands{"mais"}
- Mauritius{"maur"}
- Mawson{"maws"}
- Mexico_Northwest{"meno"}
- Mexico_Pacific{"mepa"}
- Mongolia{"mong"}
- Moscow{"mosc"}
- Myanmar{"myan"}
- Nauru{"naur"}
- Nepal{"nepa"}
- New_Caledonia{"neca"}
- New_Zealand{"neze"}
- Newfoundland{"newf"}
- Niue{"niue"}
- Norfolk{"norf"}
- Noronha{"noro"}
- North_Mariana{"noma"}
- Novosibirsk{"novo"}
- Omsk{"omsk"}
PST8PDT{"pst8pdt"}
- Pakistan{"paki"}
- Palau{"pala"}
- Papua_New_Guinea{"pang"}
- Paraguay{"para"}
- Peru{"peru"}
- Philippines{"phil"}
- Phoenix_Islands{"phis"}
- Pierre_Miquelon{"pimi"}
- Pitcairn{"pitc"}
- Ponape{"pona"}
- Pyongyang{"pyon"}
- Qyzylorda{"qyzy"}
- Reunion{"reun"}
- Rothera{"roth"}
- Sakhalin{"sakh"}
- Samara{"sama"}
- Samoa{"samo"}
- Seychelles{"seyc"}
- Singapore{"sing"}
- Solomon{"solo"}
- South_Georgia{"soge"}
- Suriname{"suri"}
- Syowa{"syow"}
- Tahiti{"tahi"}
- Taipei{"taip"}
- Tajikistan{"taji"}
- Tokelau{"toke"}
- Tonga{"tong"}
- Truk{"truk"}
- Turkmenistan{"turk"}
- Tuvalu{"tuva"}
- Uruguay{"urug"}
- Uzbekistan{"uzbe"}
- Vanuatu{"vanu"}
- Venezuela{"vene"}
- Vladivostok{"vlad"}
- Volgograd{"volg"}
- Vostok{"vost"}
- Wake{"wake"}
- Wallis{"wall"}
- Yakutsk{"yaku"}
- Yekaterinburg{"yeka"}
}
}
}
UResourceBundle *rb = ures_getByKey(top, gTypeMapTag, NULL, &tmpStatus);
ures_getByKey(rb, gTimezoneTag, rb, &tmpStatus);
ures_getByKey(rb, id, rb, &tmpStatus);
- int32_t bcp47StrLen = 0;
- ures_getString(rb, &bcp47StrLen, &tmpStatus);
- if (U_SUCCESS(tmpStatus) && bcp47StrLen!=4) {
+ if (U_SUCCESS(tmpStatus)) {
// type entry (canonical) found
// the input is the canonical ID. resolve to const UChar*
- // TODO: For now we skip entries mapping to metazone short ids,
- // which have 4 characters.
canonicalID = TimeZone::findID(tzid);
isInputCanonical = TRUE;
}
ures_getByKey(rb, gTimezoneTag, rb, &status);
shortID = ures_getStringByKey(rb, tzidKey, NULL, &status);
ures_close(rb);
- if (U_FAILURE(status) || (shortID!=nullptr && u_strlen(shortID)==4)) {
- // TODO: For now we skip entries mapping to metazone short ids,
- // which have 4 characters.
- return NULL;
- }
+
return shortID;
}
UResourceBundle typeMap = keyTypeData.get("typeMap");
UResourceBundle typeKeys = typeMap.get("timezone");
try {
- UResourceBundle canonicalEntry = typeKeys.get(tzidKey);
- if (canonicalEntry.getString().length() != 4) {
- // The given tzid is available in the canonical list
- // TODO: For now we skip entries mapping to metazone short ids,
- // which have 4 characters.
- canonical = tzid;
- }
+ /* UResourceBundle canonicalEntry = */ typeKeys.get(tzidKey);
+ // The given tzid is available in the canonical list
+ canonical = tzid;
} catch (MissingResourceException e) {
// fall through
}
} catch (MissingResourceException e) {
// fall through
}
- if (shortID!=null && shortID.length()==4) {
- // TODO: For now we skip entries mapping to metazone short ids,
- // which have 4 characters.
- return null;
- }
return shortID;
}
String legacyTypeId = typeMapEntry.getKey();
String bcpTypeId = typeMapEntry.getString();
- // TODO: For now we skip loading entries mapping to metazone short ids,
- // which have 4 characters.
- if (isTZ && bcpTypeId.length() == 4) {
- continue;
- }
-
// special types
final char first = legacyTypeId.charAt(0);
final boolean isSpecialType = '9' < first && first < 'a' && bcpTypeId.length() == 0;
version https://git-lfs.github.com/spec/v1
-oid sha256:87b44d8bdf19a56188c51fb4348630396dba560115cd0918f7a89c8d2871a26e
+oid sha256:3f402b4fe975401f04a882d775a758d929fe8bc8f48e5343b28f2f52eb02bac8
size 13626217
version https://git-lfs.github.com/spec/v1
-oid sha256:abfd47aefce01f45015382e67784908314aac96327071f50768bd2e52b4ad18f
-size 96724
+oid sha256:8e10ef2bda758384c97b0f278d73fce925d09c8409908f8e5b465a01c5078010
+size 96207
version https://git-lfs.github.com/spec/v1
-oid sha256:1db5e252cd48bb0610d5d2e84ca24de565e4014a9679ea9246b999d5bc0e74b5
-size 826093
+oid sha256:4f0d0fe4550696a62d531ba62608520481f31795390cfc21c813f952938c73c0
+size 826071
//supplementalData/metaZones/metazoneInfo/timezone[@type="(%W)"]/usesMetazone[@from="(%A)"][@mzone="(%W)"] ; /metazoneInfo/"$1"/<$2> ; values=$3 "$2" "9999-12-31 23:59"
//supplementalData/metaZones/metazoneInfo/timezone[@type="(%W)"]/usesMetazone[@from="(%A)"][@to="(%A)"][@mzone="(%W)"] ; /metazoneInfo/"$1"/<$2> ; values=$4 "$2" "$3"
//supplementalData/metaZones/metazoneInfo/timezone[@type="(%W)"]/usesMetazone[@to="(%A)"][@mzone="(%W)"] ; /metazoneInfo/"$1"/<1970-01-01 00:00> ; values=$3 "1970-01-01 00:00" "$2"
+//supplementalData/metaZones/metazoneIds/metazoneId[@shortId="(%A)"][@longId="(%A)"][@deprecated="false"] ; /metazoneIds/$1 ; values=$2
//supplementalData/primaryZones/primaryZone[@iso3166="(%W)"] ; /primaryZones/$1 ; values={value}