Lines Matching refs:DEFAULT_ZONE
118 static U_NAMESPACE_QUALIFIER TimeZone* DEFAULT_ZONE = NULL;
127 delete DEFAULT_ZONE;
128 DEFAULT_ZONE = NULL;
457 * Initialize DEFAULT_ZONE from the system default time zone. The
458 * caller should confirm that DEFAULT_ZONE is NULL before calling.
459 * Upon return, DEFAULT_ZONE will not be NULL, unless operator new()
501 UMTX_CHECK(&LOCK, (DEFAULT_ZONE != NULL), initialized);
507 TimeZone* default_zone = NULL;
513 default_zone = createSystemTimeZone(hostStrID);
521 if (default_zone != NULL && rawOffset != default_zone->getRawOffset()
526 delete default_zone;
527 default_zone = NULL;
532 if (default_zone == NULL) {
533 default_zone = new SimpleTimeZone(rawOffset, hostStrID);
537 if (default_zone == NULL) {
543 default_zone = temptz->clone();
546 // If DEFAULT_ZONE is still NULL, set it up.
548 if (DEFAULT_ZONE == NULL) {
549 DEFAULT_ZONE = default_zone;
550 default_zone = NULL;
555 delete default_zone;
565 UMTX_CHECK(&LOCK, (DEFAULT_ZONE == NULL), needsInit);
571 return (DEFAULT_ZONE != NULL) ? DEFAULT_ZONE->clone() : NULL;
584 old = DEFAULT_ZONE;
585 DEFAULT_ZONE = zone;