Home
last modified time | relevance | path

Searched refs:eyear (Results 1 – 15 of 15) sorted by relevance

/external/icu4c/i18n/
Dgregocal.cpp366 int32_t eyear, month, dayOfMonth, dayOfYear; in handleComputeFields() local
383 eyear = getGregorianYear(); in handleComputeFields()
388 eyear = (int32_t) Math::floorDivide(4*julianEpochDay + 1464, 1461); in handleComputeFields()
391 int32_t january1 = 365*(eyear-1) + Math::floorDivide(eyear-1, (int32_t)4); in handleComputeFields()
400 UBool isLeap = ((eyear&0x3) == 0); // equiv. to (eyear%4 == 0) in handleComputeFields()
424 if((eyear == fGregorianCutoverYear) && (julianDay >= fCutoverJulianDay)) { in handleComputeFields()
426 int32_t gregShift = Grego::gregorianShift(eyear); in handleComputeFields()
437 internalSet(UCAL_EXTENDED_YEAR, eyear); in handleComputeFields()
439 if (eyear < 1) { in handleComputeFields()
441 eyear = 1 - eyear; in handleComputeFields()
[all …]
Dhebrwcal.cpp526 int32_t HebrewCalendar::handleGetYearLength(int32_t eyear) const { in handleGetYearLength()
528 return startOfYear(eyear+1, status) - startOfYear(eyear, status); in handleGetYearLength()
610 int32_t HebrewCalendar::handleComputeMonthStart(int32_t eyear, int32_t month, UBool /*useMonth*/) c… in handleComputeMonthStart() argument
619 month += monthsInYear(--eyear); in handleComputeMonthStart()
623 month -= monthsInYear(eyear++); in handleComputeMonthStart()
626 int32_t day = startOfYear(eyear, status); in handleComputeMonthStart()
633 if (isLeapYear(eyear)) { in handleComputeMonthStart()
634 day += LEAP_MONTH_START[month][yearType(eyear)]; in handleComputeMonthStart()
636 day += MONTH_START[month][yearType(eyear)]; in handleComputeMonthStart()
Dindiancal.cpp110 int32_t IndianCalendar::handleGetMonthLength(int32_t eyear, int32_t month) const { in handleGetMonthLength() argument
112 eyear += Math::floorDivide(month, 12, month); in handleGetMonthLength()
115 if (isGregorianLeap(eyear + INDIAN_ERA_START) && month == 0) { in handleGetMonthLength()
131 int32_t IndianCalendar::handleGetYearLength(int32_t eyear) const { in handleGetYearLength()
132 return isGregorianLeap(eyear + INDIAN_ERA_START) ? 366 : 365; in handleGetYearLength()
239 int32_t IndianCalendar::handleComputeMonthStart(int32_t eyear, int32_t month, UBool useMonth) const… in handleComputeMonthStart() argument
246 eyear += (int32_t)Math::floorDivide(month, 12, month); in handleComputeMonthStart()
255 double jd = IndianToJD(eyear ,imonth, 1); in handleComputeMonthStart()
Dgregoimp.h246 static inline int32_t gregorianShift(int32_t eyear);
287 inline int32_t Grego::gregorianShift(int32_t eyear) { in gregorianShift() argument
288 int32_t y = eyear-1; in gregorianShift()
Dpersncal.cpp309 int32_t PersianCalendar::handleComputeMonthStart(int32_t eyear, int32_t month, UBool useMonth) cons… in handleComputeMonthStart() argument
313 eyear += month / 12; in handleComputeMonthStart()
316 return jalali_to_julian(eyear,(useMonth?month+1:1),1)-1+1947955; in handleComputeMonthStart()
Dhebrwcal.h318 virtual int32_t handleGetYearLength(int32_t eyear) const;
357 virtual int32_t handleComputeMonthStart(int32_t eyear, int32_t month,
Dbuddhcal.cpp79 int32_t BuddhistCalendar::handleComputeMonthStart(int32_t eyear, int32_t month, in handleComputeMonthStart() argument
83 return GregorianCalendar::handleComputeMonthStart(eyear, month, useMonth); in handleComputeMonthStart()
Dcalendar.cpp1238 int32_t eyear = fFields[UCAL_EXTENDED_YEAR]; in computeWeekFields() local
1268 int32_t prevDoy = dayOfYear + handleGetYearLength(eyear - 1); in computeWeekFields()
1272 int32_t lastDoy = handleGetYearLength(eyear); in computeWeekFields()
1331 int32_t eyear = getGregorianYear(); in handleComputeFields() local
1332 internalSet(UCAL_EXTENDED_YEAR, eyear); in handleComputeFields()
1334 if (eyear < 1) { in handleComputeFields()
1336 eyear = 1 - eyear; in handleComputeFields()
1339 internalSet(UCAL_YEAR, eyear); in handleComputeFields()
2786 int32_t Calendar::handleGetYearLength(int32_t eyear) const { in handleGetYearLength()
2787 return handleComputeMonthStart(eyear+1, 0, FALSE) - in handleGetYearLength()
[all …]
Dbuddhcal.h171 virtual int32_t handleComputeMonthStart(int32_t eyear, int32_t month,
Dpersncal.h220 virtual int32_t handleComputeMonthStart(int32_t eyear, int32_t month, UBool useMonth) const;
Dindiancal.h225 virtual int32_t handleComputeMonthStart(int32_t eyear, int32_t month, UBool useMonth) const;
Dislamcal.cpp337 int32_t IslamicCalendar::handleComputeMonthStart(int32_t eyear, int32_t month, UBool /* useMonth */… in handleComputeMonthStart() argument
338 return monthStart(eyear, month) + 1948439; in handleComputeMonthStart()
Dislamcal.h317 virtual int32_t handleComputeMonthStart(int32_t eyear, int32_t month, UBool useMonth) const;
/external/icu4c/i18n/unicode/
Dgregocal.h508 virtual int32_t handleComputeMonthStart(int32_t eyear, int32_t month,
537 virtual int32_t handleGetYearLength(int32_t eyear) const;
Dcalendar.h1388 virtual int32_t handleComputeMonthStart(int32_t eyear, int32_t month,
1407 virtual int32_t handleGetYearLength(int32_t eyear) const;