Home | History | Annotate | Download | only in tzcode

Lines Matching refs:zoneinfo

126     int32_t  type;  // index into 'ZoneInfo.types' 0..255
142 int32_t abbr; // index into ZoneInfo.abbrs 0..n-1
159 // with a list of the ZoneTypes. A ZoneInfo object may have a long
163 // zoneinfo file.
164 struct ZoneInfo {
181 ZoneInfo() : finalYear(-1), aliasTo(-1) {}
209 void ZoneInfo::clearAliases() {
214 void ZoneInfo::addAlias(int32_t index) {
219 void ZoneInfo::setAliasTo(int32_t index) {
225 typedef map<string, ZoneInfo> ZoneMap;
230 // ZONEINFO
233 // Global map holding all our ZoneInfo objects, indexed by id.
234 ZoneMap ZONEINFO;
237 // zoneinfo file parsing
289 * Read the zoneinfo file structure (see tzfile.h) into a ZoneInfo
292 void readzoneinfo(ifstream& file, ZoneInfo& info, bool is64bitData) {
297 // isn't a ICU-modified-zic-created zoneinfo file. Typically this
298 // means the user is passing in a "normal" zoneinfo directory, or
299 // a zoneinfo directory that is polluted with other files, or that
376 // transitions into zoneinfo.res, because data is limited to singed
533 * Process a single zoneinfo file, adding the data to ZONEINFO
534 * @param path the full path to the file, e.g., ".\zoneinfo\America\Los_Angeles"
539 if (ZONEINFO.find(id) != ZONEINFO.end()) {
551 ZoneInfo info;
560 ZoneInfo info64;
595 ZONEINFO[id] = info64;
1013 void ZoneInfo::print(ostream& os, const string& id) const {
1148 operator<<(ostream& os, const ZoneMap& zoneinfo) {
1150 for (ZoneMapIter it = zoneinfo.begin();
1151 it != zoneinfo.end();
1161 ostream& printStringList( ostream& os, const ZoneMap& zoneinfo) {
1166 for (ZoneMapIter it = zoneinfo.begin();
1167 it != zoneinfo.end();
1234 void ZoneInfo::optimizeTypeList() {
1358 void ZoneInfo::mergeFinalData(const FinalZone& fz) {
1387 * calling the ZoneInfo member function mergeFinalData.
1390 if (ZONEINFO.find(zoneid) == ZONEINFO.end()) {
1393 ZONEINFO[zoneid].mergeFinalData(fz);
1452 << " <dir> path to zoneinfo file tree generated by" << endl
1483 // their data into ZONEINFO. All files must be TZif files. Any
1491 cout << "Finished reading " << ZONEINFO.size() << " zoneinfo files ["
1492 << (ZONEINFO.begin())->first << ".."
1493 << (--ZONEINFO.end())->first << "]" << endl;
1497 // If there is a matching TZ database zone, the zoneinfo is replaced
1500 // For example, zoneinfo for Europe/Dublin imported from the TZ database
1506 for (ZoneMapIter i = ZONEINFO.begin(); i != ZONEINFO.end(); ++i) {
1516 // BEGIN ICU Custom ZoneInfo Override Handling
1519 // Replace zoneinfo with ICU definition, then remove ICU zone ID with
1525 map<string,ZoneInfo>::iterator origZi = ZONEINFO.find(origId);
1526 map<string,ZoneInfo>::iterator custZi = ZONEINFO.find(custId);
1527 if (origZi != ZONEINFO.end() && custZi != ZONEINFO.end()) {
1530 cout << "Replacing ZoneInfo " << origId << " with " << custId << endl;
1532 ZONEINFO.erase(custZi);
1547 // Also remove aliases for ICU custom zoneinfo overrides.
1568 // END ICU Custom ZoneInfo Override Handling
1582 // 1. Add all aliases as zone objects in ZONEINFO
1587 if (ZONEINFO.find(olson) == ZONEINFO.end()) {
1594 ZONEINFO[*j] = ZoneInfo();
1602 for (ZoneMap::iterator i=ZONEINFO.begin(); i!=ZONEINFO.end(); ++i) {
1606 assert(z == (int32_t) ZONEINFO.size());
1642 ZONEINFO[olson].clearAliases();
1643 ZONEINFO[olson].addAlias(zoneIDs[olson]);
1648 assert(ZONEINFO.find(*j) != ZONEINFO.end());
1649 ZONEINFO[*j].setAliasTo(zoneIDs[olson]);
1650 ZONEINFO[olson].addAlias(zoneIDs[*j]);
1655 for (ZoneMap::iterator i=ZONEINFO.begin(); i!=ZONEINFO.end(); ++i) {
1711 if (ZONEINFO.find(zone) == ZONEINFO.end()) {
1773 for (ZoneMap::iterator i=ZONEINFO.begin(); i!=ZONEINFO.end(); ++i) {
1808 << ZONEINFO // Zones (the actual data)
1812 printStringList ( file, ZONEINFO ); // print the Names list
1832 for (ZoneMap::iterator i=ZONEINFO.begin(); i!=ZONEINFO.end(); ++i) {