Home | History | Annotate | Download | only in tzcode

Lines Matching defs:ZoneInfo

125     int32_t  type;  // index into 'ZoneInfo.types' 0..255
141 int32_t abbr; // index into ZoneInfo.abbrs 0..n-1
158 // with a list of the ZoneTypes. A ZoneInfo object may have a long
162 // zoneinfo file.
163 struct ZoneInfo {
180 ZoneInfo() : finalYear(-1), aliasTo(-1) {}
208 void ZoneInfo::clearAliases() {
213 void ZoneInfo::addAlias(int32_t index) {
218 void ZoneInfo::setAliasTo(int32_t index) {
224 typedef map<string, ZoneInfo> ZoneMap;
229 // ZONEINFO
232 // Global map holding all our ZoneInfo objects, indexed by id.
233 ZoneMap ZONEINFO;
236 // zoneinfo file parsing
288 * Read the zoneinfo file structure (see tzfile.h) into a ZoneInfo
291 void readzoneinfo(ifstream& file, ZoneInfo& info, bool is64bitData) {
296 // isn't a ICU-modified-zic-created zoneinfo file. Typically this
297 // means the user is passing in a "normal" zoneinfo directory, or
298 // a zoneinfo directory that is polluted with other files, or that
375 // transitions into zoneinfo.res, because data is limited to singed
532 * Process a single zoneinfo file, adding the data to ZONEINFO
533 * @param path the full path to the file, e.g., ".\zoneinfo\America\Los_Angeles"
538 if (ZONEINFO.find(id) != ZONEINFO.end()) {
550 ZoneInfo info;
559 ZoneInfo info64;
594 ZONEINFO[id] = info64;
1016 void ZoneInfo::print(ostream& os, const string& id) const {
1151 operator<<(ostream& os, const ZoneMap& zoneinfo) {
1153 for (ZoneMapIter it = zoneinfo.begin();
1154 it != zoneinfo.end();
1164 ostream& printStringList( ostream& os, const ZoneMap& zoneinfo) {
1169 for (ZoneMapIter it = zoneinfo.begin();
1170 it != zoneinfo.end();
1237 void ZoneInfo::optimizeTypeList() {
1361 void ZoneInfo::mergeFinalData(const FinalZone& fz) {
1390 * calling the ZoneInfo member function mergeFinalData.
1393 if (ZONEINFO.find(zoneid) == ZONEINFO.end()) {
1396 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;
1506 // 1. Add all aliases as zone objects in ZONEINFO
1511 if (ZONEINFO.find(olson) == ZONEINFO.end()) {
1518 ZONEINFO[*j] = ZoneInfo();
1526 for (ZoneMap::iterator i=ZONEINFO.begin(); i!=ZONEINFO.end(); ++i) {
1530 assert(z == (int32_t) ZONEINFO.size());
1566 ZONEINFO[olson].clearAliases();
1567 ZONEINFO[olson].addAlias(zoneIDs[olson]);
1572 assert(ZONEINFO.find(*j) != ZONEINFO.end());
1573 ZONEINFO[*j].setAliasTo(zoneIDs[olson]);
1574 ZONEINFO[olson].addAlias(zoneIDs[*j]);
1579 for (ZoneMap::iterator i=ZONEINFO.begin(); i!=ZONEINFO.end(); ++i) {
1635 if (ZONEINFO.find(zone) == ZONEINFO.end()) {
1697 for (ZoneMap::iterator i=ZONEINFO.begin(); i!=ZONEINFO.end(); ++i) {
1736 << ZONEINFO // Zones (the actual data)
1740 printStringList ( file, ZONEINFO ); // print the Names list
1760 for (ZoneMap::iterator i=ZONEINFO.begin(); i!=ZONEINFO.end(); ++i) {