Home | History | Annotate | Download | only in tzcode

Lines Matching full:zoneinfo

124     int32_t  type;  // index into 'ZoneInfo.types' 0..255
140 int32_t abbr; // index into ZoneInfo.abbrs 0..n-1
157 // with a list of the ZoneTypes. A ZoneInfo object may have a long
161 // zoneinfo file.
162 struct ZoneInfo {
179 ZoneInfo() : finalYear(-1), aliasTo(-1) {}
207 void ZoneInfo::clearAliases() {
212 void ZoneInfo::addAlias(int32_t index) {
217 void ZoneInfo::setAliasTo(int32_t index) {
223 typedef map<string, ZoneInfo> ZoneMap;
228 // ZONEINFO
231 // Global map holding all our ZoneInfo objects, indexed by id.
232 ZoneMap ZONEINFO;
235 // zoneinfo file parsing
287 * Read the zoneinfo file structure (see tzfile.h) into a ZoneInfo
290 void readzoneinfo(ifstream& file, ZoneInfo& info, bool is64bitData=false) {
295 // isn't a ICU-modified-zic-created zoneinfo file. Typically this
296 // means the user is passing in a "normal" zoneinfo directory, or
297 // a zoneinfo directory that is polluted with other files, or that
374 // transitions into zoneinfo.res, because data is limited to singed
531 * Process a single zoneinfo file, adding the data to ZONEINFO
532 * @param path the full path to the file, e.g., ".\zoneinfo\America\Los_Angeles"
537 if (ZONEINFO.find(id) != ZONEINFO.end()) {
548 ZoneInfo info;
557 ZoneInfo info64;
592 ZONEINFO[id] = info64;
612 ZONEINFO[id] = info;
1035 void ZoneInfo::print(ostream& os, const string& id) const {
1098 operator<<(ostream& os, const ZoneMap& zoneinfo) {
1100 for (ZoneMapIter it = zoneinfo.begin();
1101 it != zoneinfo.end();
1111 ostream& printStringList( ostream& os, const ZoneMap& zoneinfo) {
1116 for (ZoneMapIter it = zoneinfo.begin();
1117 it != zoneinfo.end();
1184 void ZoneInfo::optimizeTypeList() {
1233 void ZoneInfo::mergeFinalData(const FinalZone& fz) {
1251 * calling the ZoneInfo member function mergeFinalData.
1254 if (ZONEINFO.find(zoneid) == ZONEINFO.end()) {
1257 ZONEINFO[zoneid].mergeFinalData(fz);
1298 << " <dir> path to zoneinfo file tree generated by" << endl
1395 // their data into ZONEINFO. All files must be TZif files. Any
1403 cout << "Finished reading " << ZONEINFO.size() << " zoneinfo files ["
1404 << (ZONEINFO.begin())->first << ".."
1405 << (--ZONEINFO.end())->first << "]" << endl;
1418 // 1. Add all aliases as zone objects in ZONEINFO
1423 if (ZONEINFO.find(olson) == ZONEINFO.end()) {
1430 ZONEINFO[*j] = ZoneInfo();
1438 for (ZoneMap::iterator i=ZONEINFO.begin(); i!=ZONEINFO.end(); ++i) {
1442 assert(z == (int32_t) ZONEINFO.size());
1478 ZONEINFO[olson].clearAliases();
1479 ZONEINFO[olson].addAlias(zoneIDs[olson]);
1484 assert(ZONEINFO.find(*j) != ZONEINFO.end());
1485 ZONEINFO[*j].setAliasTo(zoneIDs[olson]);
1486 ZONEINFO[olson].addAlias(zoneIDs[*j]);
1491 for (ZoneMap::iterator i=ZONEINFO.begin(); i!=ZONEINFO.end(); ++i) {
1519 if (ZONEINFO.find(zone) == ZONEINFO.end()) {
1560 for (ZoneMap::iterator i=ZONEINFO.begin(); i!=ZONEINFO.end(); ++i) {
1598 << ZONEINFO // Zones (the actual data)
1602 printStringList ( file, ZONEINFO ); // print the Names list
1693 for (ZoneMap::const_iterator i=ZONEINFO.begin(); i!=ZONEINFO.end(); ++i) {