Lines Matching refs:Locale
254 // to get the default calendar type for the locale's region
299 static Calendar *createStandardCalendar(ECalType calType, const Locale &loc, UErrorCode& status) {
404 Locale curLoc; // current locale
405 Locale canLoc; // Canonical locale
446 Locale loc;
492 Locale loc;
496 Locale loc2;
690 setWeekData(Locale::getDefault(), NULL, success);
695 Calendar::Calendar(TimeZone* zone, const Locale& aLocale, UErrorCode& success)
725 Calendar::Calendar(const TimeZone& zone, const Locale& aLocale, UErrorCode& success)
804 return createInstance(TimeZone::createDefault(), Locale::getDefault(), success);
812 return createInstance(zone, Locale::getDefault(), success);
818 Calendar::createInstance(const Locale& aLocale, UErrorCode& success)
828 Calendar::createInstance(TimeZone* zone, const Locale& aLocale, UErrorCode& success)
834 Locale actualLoc;
860 // Create a Locale over this string
861 Locale l("");
868 Locale actualLoc2;
888 // Perhaps DefaultCalendar{} was set to another locale.
908 fprintf(stderr, "%p: setting week count data to locale %s, actual locale %s\n", c, (const char*)aLocale.getName(), (const char *)actualLoc.getName());
910 c->setWeekData(aLocale, c->getType(), success); // set the correct locale (this was an indirected calendar)
937 Calendar::createInstance(const TimeZone& zone, const Locale& aLocale, UErrorCode& success)
1003 const Locale* U_EXPORT2
1006 return Locale::getAvailableLocales(count);
1013 const Locale& locale, UBool commonlyUsed, UErrorCode& status)
1016 UEnumeration *uenum = ucal_getKeywordValuesForLocale(key, locale.getName(),
1689 // doesn't count in this locale. Then we fill in the ends with
1698 // in this locale. We have dow in 0..6.
1702 // Find the day of the week (normalized for locale) for the first
1717 // Get the day of the week (normalized for locale) for the last
1756 // in this locale. We have dow in 0..6.
1760 // Find the day of the week (normalized for locale) for the first
1775 // Get the day of the week (normalized for locale) for the last
3516 Calendar::setWeekData(const Locale& desiredLocale, const char *type, UErrorCode& status)
3529 // we may need to tweak the locale that we are using to try to get the appropriate
3531 // 1). If the locale has a language but no territory, use the territory as defined by
3533 // 2). If the locale has a script designation then we ignore it,
3540 Locale min = Locale::createFromName(minLocaleID);
3541 Locale useLocale;
3547 Locale max = Locale::createFromName(maxLocaleID);
3548 useLocale = Locale(max.getLanguage(),max.getCountry());
3550 useLocale = Locale(desiredLocale);
3554 a specific calendar, they aren't truly locale data. But this is the only place where valid and
3555 actual locale can be set, so we take a shot at it here by loading a representative resource
3629 Locale