Lines Matching refs:cal
820 SimpleDateFormat::format(Calendar& cal, UnicodeString& appendTo, FieldPosition& pos) const
824 return _format(cal, appendTo, handler, status);
830 SimpleDateFormat::format(Calendar& cal, UnicodeString& appendTo,
834 return _format(cal, appendTo, handler, status);
840 SimpleDateFormat::_format(Calendar& cal, UnicodeString& appendTo,
846 Calendar* workCal = &cal;
848 if (&cal != fCalendar && uprv_strcmp(cal.getType(), fCalendar->getType()) != 0) {
854 UDate t = cal.getTime(status);
856 calClone->setTimeZone(cal.getTimeZone());
1186 Calendar& cal,
1202 UBool isHebrewCalendar = (uprv_strcmp(cal.getType(),"hebrew") == 0);
1203 UBool isChineseCalendar = (uprv_strcmp(cal.getType(),"chinese") == 0);
1215 int32_t value = cal.get(field, status);
1278 HebrewCalendar *hc = (HebrewCalendar*)&cal;
1286 cal.get(UCAL_IS_LEAP_MONTH, status): 0;
1329 zeroPaddingNumber(currentNumberFormat,appendTo, cal.getMaximum(UCAL_HOUR_OF_DAY) + 1, count, maxIntCount);
1365 value = cal.get(UCAL_DAY_OF_WEEK, status);
1401 value = cal.get(UCAL_DAY_OF_WEEK, status);
1434 zeroPaddingNumber(currentNumberFormat,appendTo, cal.getLeastMaximum(UCAL_HOUR) + 1, count, maxIntCount);
1448 const TimeZone& tz = cal.getTimeZone();
1449 UDate date = cal.getTime(status);
1682 SimpleDateFormat::parse(const UnicodeString& text, Calendar& cal, ParsePosition& parsePos) const
1710 Calendar *workCal = &cal;
1711 if (&cal != fCalendar && uprv_strcmp(cal.getType(), fCalendar->getType()) != 0) {
1717 calClone->setTime(cal.getTime(status),status);
1721 calClone->setTimeZone(cal.getTimeZone());
1892 copy = cal.clone();
1902 cal.set(UCAL_YEAR, fDefaultCenturyStartYear + 100);
1908 copy = cal.clone();
1914 const TimeZone & tz = cal.getTimeZone();
2011 cal.set(UCAL_ZONE_OFFSET, raw);
2012 cal.set(UCAL_DST_OFFSET, resolvedSavings);
2019 if (U_SUCCESS(status) && workCal != &cal) {
2020 cal.setTimeZone(workCal->getTimeZone());
2021 cal.setTime(workCal->getTime(status), status);
2068 Calendar& cal) const
2101 cal.set(field, bestMatch * 3);
2274 Calendar& cal) const
2325 if (!strcmp(cal.getType(),"hebrew") && field==UCAL_MONTH && bestMatch==13) {
2326 cal.set(field,6);
2332 cal.set(field, bestMatch);
2335 cal.set(UCAL_IS_LEAP_MONTH, isLeapMonth);
2418 UBool obeyCount, UBool allowNegative, UBool ambiguousYear[], int32_t& saveHebrewMonth, Calendar& cal,
2447 UBool isChineseCalendar = (uprv_strcmp(cal.getType(),"chinese") == 0);
2495 cal.set(UCAL_IS_LEAP_MONTH, 1);
2499 cal.set(UCAL_IS_LEAP_MONTH, 0);
2538 if (bias >= 0 && (value > cal.getMaximum(field) + bias || value < cal.getMinimum(field) + bias)) {
2583 cal.set(UCAL_ERA, value);
2587 ps = matchString(text, start, UCAL_ERA, fSymbols->fNarrowEras, fSymbols->fNarrowErasCount, NULL, cal);
2589 ps = matchString(text, start, UCAL_ERA, fSymbols->fEraNames, fSymbols->fEraNamesCount, NULL, cal);
2591 ps = matchString(text, start, UCAL_ERA, fSymbols->fEras, fSymbols->fErasCount, NULL, cal);
2633 cal.set(UCAL_YEAR, value);
2637 HebrewCalendar *hc = (HebrewCalendar*)&cal;
2639 cal.set(UCAL_MONTH,saveHebrewMonth);
2641 cal.set(UCAL_MONTH,saveHebrewMonth-1);
2661 cal.set(UCAL_YEAR_WOY, value);
2666 int32_t newStart = matchString(text, start, UCAL_YEAR, fSymbols->fShortYearNames, fSymbols->fShortYearNamesCount, NULL, cal);
2672 cal.set(UCAL_YEAR, value);
2684 if (!strcmp(cal.getType(),"hebrew")) {
2685 HebrewCalendar *hc = (HebrewCalendar*)&cal;
2686 if (cal.isSet(UCAL_YEAR)) {
2689 cal.set(UCAL_MONTH, value);
2691 cal.set(UCAL_MONTH, value - 1);
2700 cal.set(UCAL_MONTH, value - 1);
2720 newStart = matchString(text, start, UCAL_MONTH, fSymbols->fMonths, fSymbols->fMonthsCount, wideMonthPat, cal); // try MMMM
2724 newStart = matchString(text, start, UCAL_MONTH, fSymbols->fShortMonths, fSymbols->fShortMonthsCount, shortMonthPat, cal); // try MMM
2726 newStart = matchString(text, start, UCAL_MONTH, fSymbols->fStandaloneMonths, fSymbols->fStandaloneMonthsCount, wideMonthPat, cal); // try LLLL
2730 newStart = matchString(text, start, UCAL_MONTH, fSymbols->fStandaloneShortMonths, fSymbols->fStandaloneShortMonthsCount, shortMonthPat, cal); // try LLL
2740 if (value == cal.getMaximum(UCAL_HOUR_OF_DAY) + 1)
2746 cal.set(UCAL_HOUR_OF_DAY, value);
2765 cal.set(UCAL_MILLISECOND, value);
2772 cal.set(UCAL_DOW_LOCAL, value);
2783 fSymbols->fWeekdays, fSymbols->fWeekdaysCount, NULL, cal)) > 0)
2787 fSymbols->fShortWeekdays, fSymbols->fShortWeekdaysCount, NULL, cal)) > 0)
2791 fSymbols->fShorterWeekdays, fSymbols->fShorterWeekdaysCount, NULL, cal)) > 0)
2795 fSymbols->fNarrowWeekdays, fSymbols->fNarrowWeekdaysCount, NULL, cal)) > 0)
2808 cal.set(UCAL_DOW_LOCAL, value);
2815 fSymbols->fStandaloneWeekdays, fSymbols->fStandaloneWeekdaysCount, NULL, cal)) > 0)
2818 fSymbols->fStandaloneShortWeekdays, fSymbols->fStandaloneShortWeekdaysCount, NULL, cal)) > 0)
2821 fSymbols->fStandaloneShorterWeekdays, fSymbols->fStandaloneShorterWeekdaysCount, NULL, cal)) > 0)
2830 return matchString(text, start, UCAL_AM_PM, fSymbols->fAmPms, fSymbols->fAmPmsCount, NULL, cal);
2834 if (value == cal.getLeastMaximum(UCAL_HOUR)+1)
2840 cal.set(UCAL_HOUR, value);
2849 cal.set(UCAL_MONTH, (value - 1) * 3);
2858 fSymbols->fQuarters, fSymbols->fQuartersCount, cal)) > 0)
2861 fSymbols->fShortQuarters, fSymbols->fShortQuartersCount, cal)) > 0)
2875 cal.set(UCAL_MONTH, (value - 1) * 3);
2884 fSymbols->fStandaloneQuarters, fSymbols->fStandaloneQuartersCount, cal)) > 0)
2887 fSymbols->fStandaloneShortQuarters, fSymbols->fStandaloneShortQuartersCount, cal)) > 0)
2902 cal.adoptTimeZone(tz);
2915 cal.adoptTimeZone(tz);
2927 cal.adoptTimeZone(tz);
2953 cal.adoptTimeZone(tz);
2965 cal.adoptTimeZone(tz);
2994 cal.adoptTimeZone(tz);
3023 cal.adoptTimeZone(tz);
3059 if (bias >= 0 && (value > cal.getMaximum(field) + bias || value < cal.getMinimum(field) + bias)) {
3070 if (!strcmp(cal.getType(),"hebrew")) {
3071 HebrewCalendar *hc = (HebrewCalendar*)&cal;
3072 if (cal.isSet(UCAL_YEAR)) {
3075 cal.set(UCAL_MONTH, value);
3077 cal.set(UCAL_MONTH, value - 1);
3083 cal.set(UCAL_MONTH, value - 1);
3087 cal.set(UCAL_MONTH, value - 1);
3091 cal.set(UCAL_DOW_LOCAL, value);
3095 cal.set(UCAL_MONTH, (value - 1) * 3);
3098 cal.set(field, value);