Home
last modified time | relevance | path

Searched refs:isLeap (Results 1 – 25 of 29) sorted by relevance

12

/third_party/icu/icu4j/main/classes/core/src/com/ibm/icu/util/
DGregorianCalendar.java782 boolean isLeap = ((eyear&0x3) == 0); // equiv. to (eyear%4 == 0) in handleComputeFields()
786 int march1 = isLeap ? 60 : 59; // zero-based DOY for March 1 in handleComputeFields()
788 correction = isLeap ? 1 : 2; in handleComputeFields()
791 dayOfMonth = dayOfYear - MONTH_COUNT[month][isLeap?3:2] + 1; // one-based DOM in handleComputeFields()
863 boolean isLeap = eyear%4 == 0; in handleComputeMonthStart()
872 isLeap = isLeap && ((eyear%100 != 0) || (eyear%400 == 0)); in handleComputeMonthStart()
883 julianDay += MONTH_COUNT[month][isLeap?3:2]; in handleComputeMonthStart()
DCalendar.java5094 boolean isLeap = ((year&0x3) == 0) && // equiv. to (year%4 == 0) in computeGregorianFields()
5098 int march1 = isLeap ? 60 : 59; // zero-based DOY for March 1 in computeGregorianFields()
5099 if (dayOfYear >= march1) correction = isLeap ? 1 : 2; in computeGregorianFields()
5102 GREGORIAN_MONTH_COUNT[month][isLeap?3:2] + 1; // one-based DOM in computeGregorianFields()
6101 boolean isLeap = (year%4 == 0) && ((year%100 != 0) || (year%400 == 0)); in computeGregorianMonthStart()
6112 julianDay += GREGORIAN_MONTH_COUNT[month][isLeap?3:2]; in computeGregorianMonthStart()
/third_party/icu/ohos_icu4j/src/main/java/ohos/global/icu/util/
DGregorianCalendar.java757 boolean isLeap = ((eyear&0x3) == 0); // equiv. to (eyear%4 == 0) in handleComputeFields()
761 int march1 = isLeap ? 60 : 59; // zero-based DOY for March 1 in handleComputeFields()
763 correction = isLeap ? 1 : 2; in handleComputeFields()
766 dayOfMonth = dayOfYear - MONTH_COUNT[month][isLeap?3:2] + 1; // one-based DOM in handleComputeFields()
835 boolean isLeap = eyear%4 == 0; in handleComputeMonthStart()
844 isLeap = isLeap && ((eyear%100 != 0) || (eyear%400 == 0)); in handleComputeMonthStart()
855 julianDay += MONTH_COUNT[month][isLeap?3:2]; in handleComputeMonthStart()
DCalendar.java4894 boolean isLeap = ((year&0x3) == 0) && // equiv. to (year%4 == 0) in computeGregorianFields()
4898 int march1 = isLeap ? 60 : 59; // zero-based DOY for March 1 in computeGregorianFields()
4899 if (dayOfYear >= march1) correction = isLeap ? 1 : 2; in computeGregorianFields()
4902 GREGORIAN_MONTH_COUNT[month][isLeap?3:2] + 1; // one-based DOM in computeGregorianFields()
5883 boolean isLeap = (year%4 == 0) && ((year%100 != 0) || (year%400 == 0)); in computeGregorianMonthStart()
5894 julianDay += GREGORIAN_MONTH_COUNT[month][isLeap?3:2]; in computeGregorianMonthStart()
/third_party/icu/ohos_icu4j/src/main/java/ohos/global/icu/impl/
DGrego.java141 boolean isLeap = isLeapYear(year); in dayToFields()
143 int march1 = isLeap ? 60 : 59; // zero-based DOY for March 1 in dayToFields()
145 correction = isLeap ? 1 : 2; in dayToFields()
148 int dayOfMonth = dayOfYear - DAYS_BEFORE[isLeap ? month + 12 : month] + 1; // one-based DOM in dayToFields()
/third_party/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/
DGrego.java139 boolean isLeap = isLeapYear(year); in dayToFields()
141 int march1 = isLeap ? 60 : 59; // zero-based DOY for March 1 in dayToFields()
143 correction = isLeap ? 1 : 2; in dayToFields()
146 int dayOfMonth = dayOfYear - DAYS_BEFORE[isLeap ? month + 12 : month] + 1; // one-based DOM in dayToFields()
/third_party/flutter/skia/third_party/externals/icu/source/i18n/
Dgregoimp.cpp120 UBool isLeap = isLeapYear(year); in dayToFields() local
128 int32_t march1 = isLeap ? 60 : 59; // zero-based DOY for March 1 in dayToFields()
130 correction = isLeap ? 1 : 2; in dayToFields()
133 dom = doy - DAYS_BEFORE[month + (isLeap ? 12 : 0)] + 1; // one-based DOM in dayToFields()
Dgregocal.cpp403 UBool isLeap = ((eyear&0x3) == 0); // equiv. to (eyear%4 == 0) in handleComputeFields() local
407 int32_t march1 = isLeap ? 60 : 59; // zero-based DOY for March 1 in handleComputeFields()
409 correction = isLeap ? 1 : 2; in handleComputeFields()
412 dayOfMonth = dayOfYear - (isLeap?kLeapNumDays[month]:kNumDays[month]) + 1; // one-based DOM in handleComputeFields()
543 UBool isLeap = eyear%4 == 0; in handleComputeMonthStart() local
556 isLeap = isLeap && ((eyear%100 != 0) || (eyear%400 == 0)); in handleComputeMonthStart()
572 julianDay += isLeap?kLeapNumDays[month]:kNumDays[month]; in handleComputeMonthStart()
717 int32_t year, UBool& isLeap) in computeJulianDayOfYear() argument
719 isLeap = year%4 == 0; in computeJulianDayOfYear()
724 isLeap = isLeap && ((year%100 != 0) || (year%400 == 0)); in computeJulianDayOfYear()
Dhebrwcal.cpp583 UBool isLeap = isLeapYear(year); in handleComputeFields() local
587 …while (month < momax && dayOfYear > ( isLeap ? LEAP_MONTH_START[month][type] : MONTH_START[month]… in handleComputeFields()
604 … int dayOfMonth = dayOfYear - (isLeap ? LEAP_MONTH_START[month][type] : MONTH_START[month][type]); in handleComputeFields()
/third_party/node/deps/icu-small/source/i18n/
Dgregoimp.cpp120 UBool isLeap = isLeapYear(year); in dayToFields() local
128 int32_t march1 = isLeap ? 60 : 59; // zero-based DOY for March 1 in dayToFields()
130 correction = isLeap ? 1 : 2; in dayToFields()
133 dom = doy - DAYS_BEFORE[month + (isLeap ? 12 : 0)] + 1; // one-based DOM in dayToFields()
Dgregocal.cpp403 UBool isLeap = ((eyear&0x3) == 0); // equiv. to (eyear%4 == 0) in handleComputeFields() local
407 int32_t march1 = isLeap ? 60 : 59; // zero-based DOY for March 1 in handleComputeFields()
409 correction = isLeap ? 1 : 2; in handleComputeFields()
412 dayOfMonth = dayOfYear - (isLeap?kLeapNumDays[month]:kNumDays[month]) + 1; // one-based DOM in handleComputeFields()
543 UBool isLeap = eyear%4 == 0; in handleComputeMonthStart() local
556 isLeap = isLeap && ((eyear%100 != 0) || (eyear%400 == 0)); in handleComputeMonthStart()
572 julianDay += isLeap?kLeapNumDays[month]:kNumDays[month]; in handleComputeMonthStart()
717 int32_t year, UBool& isLeap) in computeJulianDayOfYear() argument
719 isLeap = year%4 == 0; in computeJulianDayOfYear()
724 isLeap = isLeap && ((year%100 != 0) || (year%400 == 0)); in computeJulianDayOfYear()
Dhebrwcal.cpp584 UBool isLeap = isLeapYear(year); in handleComputeFields() local
588 …while (month < momax && dayOfYear > ( isLeap ? LEAP_MONTH_START[month][type] : MONTH_START[month]… in handleComputeFields()
605 … int dayOfMonth = dayOfYear - (isLeap ? LEAP_MONTH_START[month][type] : MONTH_START[month][type]); in handleComputeFields()
/third_party/skia/third_party/externals/icu/source/i18n/
Dgregoimp.cpp120 UBool isLeap = isLeapYear(year); in dayToFields() local
128 int32_t march1 = isLeap ? 60 : 59; // zero-based DOY for March 1 in dayToFields()
130 correction = isLeap ? 1 : 2; in dayToFields()
133 dom = doy - DAYS_BEFORE[month + (isLeap ? 12 : 0)] + 1; // one-based DOM in dayToFields()
Dgregocal.cpp403 UBool isLeap = ((eyear&0x3) == 0); // equiv. to (eyear%4 == 0) in handleComputeFields() local
407 int32_t march1 = isLeap ? 60 : 59; // zero-based DOY for March 1 in handleComputeFields()
409 correction = isLeap ? 1 : 2; in handleComputeFields()
412 dayOfMonth = dayOfYear - (isLeap?kLeapNumDays[month]:kNumDays[month]) + 1; // one-based DOM in handleComputeFields()
543 UBool isLeap = eyear%4 == 0; in handleComputeMonthStart() local
556 isLeap = isLeap && ((eyear%100 != 0) || (eyear%400 == 0)); in handleComputeMonthStart()
572 julianDay += isLeap?kLeapNumDays[month]:kNumDays[month]; in handleComputeMonthStart()
717 int32_t year, UBool& isLeap) in computeJulianDayOfYear() argument
719 isLeap = year%4 == 0; in computeJulianDayOfYear()
724 isLeap = isLeap && ((year%100 != 0) || (year%400 == 0)); in computeJulianDayOfYear()
Dhebrwcal.cpp584 UBool isLeap = isLeapYear(year); in handleComputeFields() local
588 …while (month < momax && dayOfYear > ( isLeap ? LEAP_MONTH_START[month][type] : MONTH_START[month]… in handleComputeFields()
605 … int dayOfMonth = dayOfYear - (isLeap ? LEAP_MONTH_START[month][type] : MONTH_START[month][type]); in handleComputeFields()
/third_party/icu/icu4c/source/i18n/
Dgregoimp.cpp120 UBool isLeap = isLeapYear(year); in dayToFields() local
128 int32_t march1 = isLeap ? 60 : 59; // zero-based DOY for March 1 in dayToFields()
130 correction = isLeap ? 1 : 2; in dayToFields()
133 dom = doy - DAYS_BEFORE[month + (isLeap ? 12 : 0)] + 1; // one-based DOM in dayToFields()
Dgregocal.cpp403 UBool isLeap = ((eyear&0x3) == 0); // equiv. to (eyear%4 == 0) in handleComputeFields() local
407 int32_t march1 = isLeap ? 60 : 59; // zero-based DOY for March 1 in handleComputeFields()
409 correction = isLeap ? 1 : 2; in handleComputeFields()
412 dayOfMonth = dayOfYear - (isLeap?kLeapNumDays[month]:kNumDays[month]) + 1; // one-based DOM in handleComputeFields()
543 UBool isLeap = eyear%4 == 0; in handleComputeMonthStart() local
556 isLeap = isLeap && ((eyear%100 != 0) || (eyear%400 == 0)); in handleComputeMonthStart()
572 julianDay += isLeap?kLeapNumDays[month]:kNumDays[month]; in handleComputeMonthStart()
717 int32_t year, UBool& isLeap) in computeJulianDayOfYear() argument
719 isLeap = year%4 == 0; in computeJulianDayOfYear()
724 isLeap = isLeap && ((year%100 != 0) || (year%400 == 0)); in computeJulianDayOfYear()
Dhebrwcal.cpp584 UBool isLeap = isLeapYear(year); in handleComputeFields() local
588 …while (month < momax && dayOfYear > ( isLeap ? LEAP_MONTH_START[month][type] : MONTH_START[month]… in handleComputeFields()
605 … int dayOfMonth = dayOfYear - (isLeap ? LEAP_MONTH_START[month][type] : MONTH_START[month][type]); in handleComputeFields()
/third_party/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/calendar/
DCopticTest.java233 boolean isLeap = ((year % 4) == 3); in Test6379()
242 int expected = (month != maxMonth) ? 30 : (isLeap ? 6 : 5); in Test6379()
/third_party/icu/ohos_icu4j/src/main/tests/ohos/global/icu/dev/test/calendar/
DCopticTest.java236 boolean isLeap = ((year % 4) == 3); in Test6379()
245 int expected = (month != maxMonth) ? 30 : (isLeap ? 6 : 5); in Test6379()
/third_party/icu/icu4c/source/i18n/unicode/
Dgregocal.h667 UBool& isLeap);
/third_party/flutter/skia/third_party/externals/icu/source/i18n/unicode/
Dgregocal.h663 UBool& isLeap);
/third_party/skia/third_party/externals/icu/source/i18n/unicode/
Dgregocal.h667 UBool& isLeap);
/third_party/node/deps/icu-small/source/i18n/unicode/
Dgregocal.h667 UBool& isLeap);
/third_party/icu/icu4c/source/tools/tzcode/
Dtz2icu.cpp66 bool isLeap(int32_t y) { in isLeap() function
71 return isLeap(y) ? SECS_PER_LEAP_YEAR : SECS_PER_YEAR; in secsPerYear()

12