Home | History | Annotate | Download | only in tzcode

Lines Matching defs:zone

131 // A behavior mode (what zic calls a 'type') of a time zone.
172 // this field will point to the "real" zone 0..n-1.
173 int32_t aliasTo; // -1 if this is a "real" zone
175 // If there are aliases TO this zone, then the following set will
185 // Set this zone to be an alias TO another zone.
188 // Clear the list of aliases OF this zone.
191 // Add an alias to the list of aliases OF this zone.
194 // Is this an alias to another zone?
533 * @param id the zone ID, e.g., "America/Los_Angeles"
539 os << "duplicate zone ID: " << id;
723 // Final zone and rule info
968 } else if (token == "zone") {
969 // zone Africa/Cairo 7200 1995 Egypt # zone Africa/Cairo, offset 7200, year >= 1995, rule Egypt (0)
987 string fromid, toid; // fromid == "real" zone, toid == alias
991 throw invalid_argument("Bad link: `to' id is a \"real\" zone");
1015 // Perform validity check: Each zone should map to a known rule.
1020 // Perform validity check: Each rule should be referred to by a zone.
1075 // Final zone info, if any
1149 * A zone type that contains only the raw and dst offset. Used by the
1231 * Merge final zone data into this zone.
1242 throw invalid_argument("Final zone already merged in");
1250 * Merge the data from the given final zone into the core zone data by
1255 throw invalid_argument("Unrecognized final zone ID");
1261 * Visitor function that merges the final zone data into the main zone
1262 * data structures. It calls mergeOne for each final zone and its
1301 << " typically named \"zone.tab\"" << endl
1365 << "\" is an Olson zone in "
1410 cerr << "Error: While merging final zone data: " << error.what() << endl;
1418 // 1. Add all aliases as zone objects in ZONEINFO
1497 map<string, string> reverseCountryMap; // zone -> country
1511 string country, coord, zone;
1513 is >> country >> coord >> zone;
1515 if (country.size() != 2 || zone.size() < 1) {
1519 if (ZONEINFO.find(zone) == ZONEINFO.end()) {
1520 cerr << "Error: Country maps to invalid zone " << zone
1524 countryMap[country].insert(zone);
1525 reverseCountryMap[zone] = country;
1526 //cerr << (n+1) << ": " << country << " <=> " << zone << endl;
1604 // Final Rules are used if requested by the zone
1618 // Emit country (region) map. Emitting the string zone IDs results
1619 // in a 188 kb binary resource; emitting the zone index numbers
1639 cerr << "Error: Nonexistent zone in country map: " << *j << endl;
1642 file << zoneIDs[*j]; // emit the zone's index number
1699 // The ID of this zone (the canonical zone, to which the
1702 // the canonical zone, we should move it to position 0.