Home
last modified time | relevance | path

Searched refs:extendedYear (Results 1 – 25 of 70) sorted by relevance

123

/third_party/flutter/skia/third_party/externals/icu/source/i18n/
Dislamcal.cpp509 int32_t IslamicCalendar::handleGetMonthLength(int32_t extendedYear, int32_t month) const { in handleGetMonthLength() argument
514 … (cType == UMALQURA && (extendedYear<UMALQURA_YEAR_START || extendedYear>UMALQURA_YEAR_END)) ) { in handleGetMonthLength()
516 if (month == DHU_AL_HIJJAH && civilLeapYear(extendedYear)) { in handleGetMonthLength()
520 month = 12*(extendedYear-1) + month; in handleGetMonthLength()
523 length = getUmalqura_MonthLength(extendedYear - UMALQURA_YEAR_START, month); in handleGetMonthLength()
532 int32_t IslamicCalendar::handleGetYearLength(int32_t extendedYear) const { in handleGetYearLength()
534 … (cType == UMALQURA && (extendedYear<UMALQURA_YEAR_START || extendedYear>UMALQURA_YEAR_END)) ) { in handleGetYearLength()
535 return 354 + (civilLeapYear(extendedYear) ? 1 : 0); in handleGetYearLength()
537 int32_t month = 12*(extendedYear-1); in handleGetYearLength()
542 len += handleGetMonthLength(extendedYear, i); in handleGetYearLength()
Dpersncal.cpp146 int32_t PersianCalendar::handleGetMonthLength(int32_t extendedYear, int32_t month) const { in handleGetMonthLength() argument
150 extendedYear += ClockMath::floorDivide(month, 12, month); in handleGetMonthLength()
153 return isLeapYear(extendedYear) ? kPersianLeapMonthLength[month] : kPersianMonthLength[month]; in handleGetMonthLength()
159 int32_t PersianCalendar::handleGetYearLength(int32_t extendedYear) const { in handleGetYearLength()
160 return isLeapYear(extendedYear) ? 366 : 365; in handleGetYearLength()
Dindiancal.h212 virtual int32_t handleGetMonthLength(int32_t extendedYear, int32_t month) const;
218 virtual int32_t handleGetYearLength(int32_t extendedYear) const;
Dpersncal.h206 virtual int32_t handleGetMonthLength(int32_t extendedYear, int32_t month) const;
212 virtual int32_t handleGetYearLength(int32_t extendedYear) const;
/third_party/icu/ohos_icu4j/src/main/java/ohos/global/icu/util/
DIslamicCalendar.java717 protected int handleGetMonthLength(int extendedYear, int month) { in handleGetMonthLength() argument
723 …|| (cType == CalculationType.ISLAMIC_UMALQURA && (extendedYear < UMALQURA_YEAR_START || extendedY… in handleGetMonthLength()
725 if (month == DHU_AL_HIJJAH && civilLeapYear(extendedYear)) { in handleGetMonthLength()
730 month = 12*(extendedYear-1) + month; in handleGetMonthLength()
734 … int idx = (extendedYear - UMALQURA_YEAR_START); // calculate year offset into bit map array in handleGetMonthLength()
750 protected int handleGetYearLength(int extendedYear) { in handleGetYearLength() argument
754 …|| (cType == CalculationType.ISLAMIC_UMALQURA && (extendedYear < UMALQURA_YEAR_START || extendedY… in handleGetYearLength()
755 length = 354 + (civilLeapYear(extendedYear) ? 1 : 0); in handleGetYearLength()
757 int month = 12*(extendedYear-1); in handleGetYearLength()
761 length += handleGetMonthLength(extendedYear, i); in handleGetYearLength()
DJapaneseCalendar.java292 protected int getDefaultMonthInYear(int extendedYear) { in getDefaultMonthInYear() argument
298 if (extendedYear == eraStart[0]) { in getDefaultMonthInYear()
302 return super.getDefaultMonthInYear(extendedYear); in getDefaultMonthInYear()
316 protected int getDefaultDayInMonth(int extendedYear, int month) { in getDefaultDayInMonth() argument
320 if (extendedYear == eraStart[0]) { // if it is year 1.. in getDefaultDayInMonth()
326 return super.getDefaultDayInMonth(extendedYear, month); in getDefaultDayInMonth()
DPersianCalendar.java334 protected int handleGetMonthLength(int extendedYear, int month) { in handleGetMonthLength() argument
339 extendedYear += floorDivide(month, 12, rem); in handleGetMonthLength()
343 return MONTH_COUNT[month][isLeapYear(extendedYear)?1:0]; in handleGetMonthLength()
353 protected int handleGetYearLength(int extendedYear) { in handleGetYearLength() argument
354 return isLeapYear(extendedYear) ? 366 : 365; in handleGetYearLength()
DIndianCalendar.java304 protected int handleGetYearLength(int extendedYear) { in handleGetYearLength() argument
305 return super.handleGetYearLength(extendedYear); in handleGetYearLength()
311 protected int handleGetMonthLength(int extendedYear, int month) { in handleGetMonthLength() argument
314 extendedYear += floorDivide(month, 12, remainder); in handleGetMonthLength()
318 if(isGregorianLeap(extendedYear + INDIAN_ERA_START) && month == 0) { in handleGetMonthLength()
DHebrewCalendar.java692 protected int handleGetMonthLength(int extendedYear, int month) { in handleGetMonthLength() argument
700 month += monthsInYear(--extendedYear); in handleGetMonthLength()
704 month -= monthsInYear(extendedYear++); in handleGetMonthLength()
711 return MONTH_LENGTH[month][yearType(extendedYear)]; in handleGetMonthLength()
/third_party/icu/icu4j/main/classes/core/src/com/ibm/icu/util/
DIslamicCalendar.java741 protected int handleGetMonthLength(int extendedYear, int month) { in handleGetMonthLength() argument
747 …|| (cType == CalculationType.ISLAMIC_UMALQURA && (extendedYear < UMALQURA_YEAR_START || extendedY… in handleGetMonthLength()
749 if (month == DHU_AL_HIJJAH && civilLeapYear(extendedYear)) { in handleGetMonthLength()
754 month = 12*(extendedYear-1) + month; in handleGetMonthLength()
758 … int idx = (extendedYear - UMALQURA_YEAR_START); // calculate year offset into bit map array in handleGetMonthLength()
775 protected int handleGetYearLength(int extendedYear) { in handleGetYearLength() argument
779 …|| (cType == CalculationType.ISLAMIC_UMALQURA && (extendedYear < UMALQURA_YEAR_START || extendedY… in handleGetYearLength()
780 length = 354 + (civilLeapYear(extendedYear) ? 1 : 0); in handleGetYearLength()
782 int month = 12*(extendedYear-1); in handleGetYearLength()
786 length += handleGetMonthLength(extendedYear, i); in handleGetYearLength()
DJapaneseCalendar.java303 protected int getDefaultMonthInYear(int extendedYear) { in getDefaultMonthInYear() argument
309 if (extendedYear == eraStart[0]) { in getDefaultMonthInYear()
313 return super.getDefaultMonthInYear(extendedYear); in getDefaultMonthInYear()
327 protected int getDefaultDayInMonth(int extendedYear, int month) { in getDefaultDayInMonth() argument
331 if (extendedYear == eraStart[0]) { // if it is year 1.. in getDefaultDayInMonth()
337 return super.getDefaultDayInMonth(extendedYear, month); in getDefaultDayInMonth()
DPersianCalendar.java332 protected int handleGetMonthLength(int extendedYear, int month) { in handleGetMonthLength() argument
337 extendedYear += floorDivide(month, 12, rem); in handleGetMonthLength()
341 return MONTH_COUNT[month][isLeapYear(extendedYear)?1:0]; in handleGetMonthLength()
351 protected int handleGetYearLength(int extendedYear) { in handleGetYearLength() argument
352 return isLeapYear(extendedYear) ? 366 : 365; in handleGetYearLength()
DIndianCalendar.java329 protected int handleGetYearLength(int extendedYear) { in handleGetYearLength() argument
330 return super.handleGetYearLength(extendedYear); in handleGetYearLength()
337 protected int handleGetMonthLength(int extendedYear, int month) { in handleGetMonthLength() argument
340 extendedYear += floorDivide(month, 12, remainder); in handleGetMonthLength()
344 if(isGregorianLeapYear(extendedYear + INDIAN_ERA_START) && month == 0) { in handleGetMonthLength()
DHebrewCalendar.java722 protected int handleGetMonthLength(int extendedYear, int month) { in handleGetMonthLength() argument
730 month += monthsInYear(--extendedYear); in handleGetMonthLength()
734 month -= monthsInYear(extendedYear++); in handleGetMonthLength()
741 return MONTH_LENGTH[month][yearType(extendedYear)]; in handleGetMonthLength()
/third_party/skia/third_party/externals/icu/source/i18n/
Dislamcal.cpp508 int32_t IslamicCalendar::handleGetMonthLength(int32_t extendedYear, int32_t month) const { in handleGetMonthLength() argument
513 … (cType == UMALQURA && (extendedYear<UMALQURA_YEAR_START || extendedYear>UMALQURA_YEAR_END)) ) { in handleGetMonthLength()
515 if (month == DHU_AL_HIJJAH && civilLeapYear(extendedYear)) { in handleGetMonthLength()
519 month = 12*(extendedYear-1) + month; in handleGetMonthLength()
522 length = getUmalqura_MonthLength(extendedYear - UMALQURA_YEAR_START, month); in handleGetMonthLength()
531 int32_t IslamicCalendar::handleGetYearLength(int32_t extendedYear) const { in handleGetYearLength()
533 … (cType == UMALQURA && (extendedYear<UMALQURA_YEAR_START || extendedYear>UMALQURA_YEAR_END)) ) { in handleGetYearLength()
534 return 354 + (civilLeapYear(extendedYear) ? 1 : 0); in handleGetYearLength()
536 int32_t month = 12*(extendedYear-1); in handleGetYearLength()
541 len += handleGetMonthLength(extendedYear, i); in handleGetYearLength()
Dpersncal.cpp146 int32_t PersianCalendar::handleGetMonthLength(int32_t extendedYear, int32_t month) const { in handleGetMonthLength() argument
150 extendedYear += ClockMath::floorDivide(month, 12, month); in handleGetMonthLength()
153 return isLeapYear(extendedYear) ? kPersianLeapMonthLength[month] : kPersianMonthLength[month]; in handleGetMonthLength()
159 int32_t PersianCalendar::handleGetYearLength(int32_t extendedYear) const { in handleGetYearLength()
160 return isLeapYear(extendedYear) ? 366 : 365; in handleGetYearLength()
Dindiancal.h212 virtual int32_t handleGetMonthLength(int32_t extendedYear, int32_t month) const;
218 virtual int32_t handleGetYearLength(int32_t extendedYear) const;
Dpersncal.h206 virtual int32_t handleGetMonthLength(int32_t extendedYear, int32_t month) const;
212 virtual int32_t handleGetYearLength(int32_t extendedYear) const;
/third_party/icu/icu4c/source/i18n/
Dislamcal.cpp508 int32_t IslamicCalendar::handleGetMonthLength(int32_t extendedYear, int32_t month) const { in handleGetMonthLength() argument
513 … (cType == UMALQURA && (extendedYear<UMALQURA_YEAR_START || extendedYear>UMALQURA_YEAR_END)) ) { in handleGetMonthLength()
515 if (month == DHU_AL_HIJJAH && civilLeapYear(extendedYear)) { in handleGetMonthLength()
519 month = 12*(extendedYear-1) + month; in handleGetMonthLength()
522 length = getUmalqura_MonthLength(extendedYear - UMALQURA_YEAR_START, month); in handleGetMonthLength()
531 int32_t IslamicCalendar::handleGetYearLength(int32_t extendedYear) const { in handleGetYearLength()
533 … (cType == UMALQURA && (extendedYear<UMALQURA_YEAR_START || extendedYear>UMALQURA_YEAR_END)) ) { in handleGetYearLength()
534 return 354 + (civilLeapYear(extendedYear) ? 1 : 0); in handleGetYearLength()
536 int32_t month = 12*(extendedYear-1); in handleGetYearLength()
541 len += handleGetMonthLength(extendedYear, i); in handleGetYearLength()
Dpersncal.cpp146 int32_t PersianCalendar::handleGetMonthLength(int32_t extendedYear, int32_t month) const { in handleGetMonthLength() argument
150 extendedYear += ClockMath::floorDivide(month, 12, month); in handleGetMonthLength()
153 return isLeapYear(extendedYear) ? kPersianLeapMonthLength[month] : kPersianMonthLength[month]; in handleGetMonthLength()
159 int32_t PersianCalendar::handleGetYearLength(int32_t extendedYear) const { in handleGetYearLength()
160 return isLeapYear(extendedYear) ? 366 : 365; in handleGetYearLength()
Dindiancal.h212 virtual int32_t handleGetMonthLength(int32_t extendedYear, int32_t month) const;
218 virtual int32_t handleGetYearLength(int32_t extendedYear) const;
Dpersncal.h206 virtual int32_t handleGetMonthLength(int32_t extendedYear, int32_t month) const;
212 virtual int32_t handleGetYearLength(int32_t extendedYear) const;
/third_party/node/deps/icu-small/source/i18n/
Dislamcal.cpp508 int32_t IslamicCalendar::handleGetMonthLength(int32_t extendedYear, int32_t month) const { in handleGetMonthLength() argument
513 … (cType == UMALQURA && (extendedYear<UMALQURA_YEAR_START || extendedYear>UMALQURA_YEAR_END)) ) { in handleGetMonthLength()
515 if (month == DHU_AL_HIJJAH && civilLeapYear(extendedYear)) { in handleGetMonthLength()
519 month = 12*(extendedYear-1) + month; in handleGetMonthLength()
522 length = getUmalqura_MonthLength(extendedYear - UMALQURA_YEAR_START, month); in handleGetMonthLength()
531 int32_t IslamicCalendar::handleGetYearLength(int32_t extendedYear) const { in handleGetYearLength()
533 … (cType == UMALQURA && (extendedYear<UMALQURA_YEAR_START || extendedYear>UMALQURA_YEAR_END)) ) { in handleGetYearLength()
534 return 354 + (civilLeapYear(extendedYear) ? 1 : 0); in handleGetYearLength()
536 int32_t month = 12*(extendedYear-1); in handleGetYearLength()
541 len += handleGetMonthLength(extendedYear, i); in handleGetYearLength()
Dpersncal.cpp146 int32_t PersianCalendar::handleGetMonthLength(int32_t extendedYear, int32_t month) const { in handleGetMonthLength() argument
150 extendedYear += ClockMath::floorDivide(month, 12, month); in handleGetMonthLength()
153 return isLeapYear(extendedYear) ? kPersianLeapMonthLength[month] : kPersianMonthLength[month]; in handleGetMonthLength()
159 int32_t PersianCalendar::handleGetYearLength(int32_t extendedYear) const { in handleGetYearLength()
160 return isLeapYear(extendedYear) ? 366 : 365; in handleGetYearLength()
Dindiancal.h212 virtual int32_t handleGetMonthLength(int32_t extendedYear, int32_t month) const override;
218 virtual int32_t handleGetYearLength(int32_t extendedYear) const override;

123