Home | History | Annotate | Download | only in i18n

Lines Matching defs:zone

34 *                           Substantial rewrite of zone lookup, default zone, and
234 * Fetch a specific zone by name. Replaces the getByKey call.
236 * @param id Time zone ID
238 * @return the zone's bundle if found, or undefined if error. Reuses oldbundle.
256 oldbundle = ures_getByIndex(tmp, idx, oldbundle, &status); // get nth Zone object
281 * Given an ID, open the appropriate resource for the given time zone.
283 * @param id zone id
301 U_DEBUG_TZ_MSG(("Loading zone '%s' (%s, size %d) - %s\n", buf, ures_getKey((UResourceBundle*)&res), ures_getSize(&res), u_errorName(ec)));
325 // be valid even if we can't load the time zone UDataMemory.
394 /* We first try to lookup the zone ID in our system list. If this
405 U_DEBUG_TZ_MSG(("failed to load system time zone with id - falling to custom"));
409 U_DEBUG_TZ_MSG(("failed to load time zone with id - falling to GMT"));
421 * Lookup the given name in our system zone table. If found,
422 * instantiate a new zone of that name and return it. If not
439 U_DEBUG_TZ_MSG(("cstz: olson time zone failed to initialize - err %s\n", u_errorName(ec)));
455 * Initialize DEFAULT_ZONE from the system default time zone. The
528 // Construct a fixed standard zone with the host's ID
534 // If we _still_ don't have a time zone, use GMT.
575 TimeZone::adoptDefault(TimeZone* zone)
577 if (zone != NULL)
583 DEFAULT_ZONE = zone;
593 TimeZone::setDefault(const TimeZone& zone)
595 adoptDefault(zone.clone());
657 // Map into to zones. Our results are zone[map[i]] for
658 // i=0..len-1, where zone[i] is the i-th Olson zone. If map==NULL
659 // then our results are zone[i] for i=0..len-1. Len will be zero
660 // iff the zone data could not be loaded.
871 int32_t zone = -1;
880 zone = v[index];
886 if (zone >= 0) {
890 const UChar* id = ures_getStringByIndex(ares, zone, &idLen, &ec);
892 U_DEBUG_TZ_MSG(("gei(%d) -> %d, len%d, %s\n", index, zone, result.length(), u_errorName(ec)));
915 // resolve zone index by name
920 // open the zone bundle by index
947 // resolve zone index by name
1062 // Create a new SimpleTimeZone as a stand-in for this zone; the
1084 // We need to create a fake time zone
1101 // or display name for daylight saving time was requested, but this zone no longer
1118 * Parse a custom time zone identifier and return a corresponding zone.
1274 // Create time zone ID - GMT[+|-]hhmm[ss]