Home
last modified time | relevance | path

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

12

/external/chromium_org/third_party/icu/source/i18n/
Dethpccal.cpp83 int32_t eyear; in handleGetExtendedYear() local
85 eyear = internalGet(UCAL_EXTENDED_YEAR, 1); // Default to year 1 in handleGetExtendedYear()
87 eyear = internalGet(UCAL_YEAR, 1 + AMETE_MIHRET_DELTA) in handleGetExtendedYear()
93 eyear = internalGet(UCAL_YEAR, 1); // Default to year 1 in handleGetExtendedYear()
95 eyear = internalGet(UCAL_YEAR, 1) - AMETE_MIHRET_DELTA; in handleGetExtendedYear()
98 return eyear; in handleGetExtendedYear()
104 int32_t eyear, month, day, era, year; in handleComputeFields() local
105 jdToCE(julianDay, getJDEpochOffset(), eyear, month, day); in handleComputeFields()
109 year = eyear + AMETE_MIHRET_DELTA; in handleComputeFields()
111 if (eyear > 0) { in handleComputeFields()
[all …]
Dcoptccal.cpp60 int32_t eyear; in handleGetExtendedYear() local
62 eyear = internalGet(UCAL_EXTENDED_YEAR, 1); // Default to year 1 in handleGetExtendedYear()
67 eyear = 1 - internalGet(UCAL_YEAR, 1); // Convert to extended year in handleGetExtendedYear()
69 eyear = internalGet(UCAL_YEAR, 1); // Default to year 1 in handleGetExtendedYear()
72 return eyear; in handleGetExtendedYear()
78 int32_t eyear, month, day, era, year; in handleComputeFields() local
79 jdToCE(julianDay, getJDEpochOffset(), eyear, month, day); in handleComputeFields()
81 if (eyear <= 0) { in handleComputeFields()
83 year = 1 - eyear; in handleComputeFields()
86 year = eyear; in handleComputeFields()
[all …]
Dgregocal.cpp367 int32_t eyear, month, dayOfMonth, dayOfYear, unusedRemainder; in handleComputeFields() local
384 eyear = getGregorianYear(); in handleComputeFields()
389eyear = (int32_t) ClockMath::floorDivide((4.0*julianEpochDay) + 1464.0, (int32_t) 1461, unusedRema… in handleComputeFields()
392 int32_t january1 = 365*(eyear-1) + ClockMath::floorDivide(eyear-1, (int32_t)4); in handleComputeFields()
401 UBool isLeap = ((eyear&0x3) == 0); // equiv. to (eyear%4 == 0) in handleComputeFields()
425 if((eyear == fGregorianCutoverYear) && (julianDay >= fCutoverJulianDay)) { in handleComputeFields()
427 int32_t gregShift = Grego::gregorianShift(eyear); in handleComputeFields()
438 internalSet(UCAL_EXTENDED_YEAR, eyear); in handleComputeFields()
440 if (eyear < 1) { in handleComputeFields()
442 eyear = 1 - eyear; in handleComputeFields()
[all …]
Dhebrwcal.cpp527 int32_t HebrewCalendar::handleGetYearLength(int32_t eyear) const { in handleGetYearLength()
529 return startOfYear(eyear+1, status) - startOfYear(eyear, status); in handleGetYearLength()
625 int32_t HebrewCalendar::handleComputeMonthStart(int32_t eyear, int32_t month, UBool /*useMonth*/) c… in handleComputeMonthStart() argument
634 month += monthsInYear(--eyear); in handleComputeMonthStart()
638 month -= monthsInYear(eyear++); in handleComputeMonthStart()
641 int32_t day = startOfYear(eyear, status); in handleComputeMonthStart()
648 if (isLeapYear(eyear)) { in handleComputeMonthStart()
649 day += LEAP_MONTH_START[month][yearType(eyear)]; in handleComputeMonthStart()
651 day += MONTH_START[month][yearType(eyear)]; in handleComputeMonthStart()
Dindiancal.cpp111 int32_t IndianCalendar::handleGetMonthLength(int32_t eyear, int32_t month) const { in handleGetMonthLength() argument
113 eyear += ClockMath::floorDivide(month, 12, month); in handleGetMonthLength()
116 if (isGregorianLeap(eyear + INDIAN_ERA_START) && month == 0) { in handleGetMonthLength()
132 int32_t IndianCalendar::handleGetYearLength(int32_t eyear) const { in handleGetYearLength()
133 return isGregorianLeap(eyear + INDIAN_ERA_START) ? 366 : 365; in handleGetYearLength()
240 int32_t IndianCalendar::handleComputeMonthStart(int32_t eyear, int32_t month, UBool /* useMonth */ … in handleComputeMonthStart() argument
247 eyear += (int32_t)ClockMath::floorDivide(month, 12, month); in handleComputeMonthStart()
256 double jd = IndianToJD(eyear ,imonth, 1); in handleComputeMonthStart()
Dpersncal.cpp166 int32_t PersianCalendar::handleComputeMonthStart(int32_t eyear, int32_t month, UBool /*useMonth*/) … in handleComputeMonthStart() argument
170 eyear += ClockMath::floorDivide(month, 12, month); in handleComputeMonthStart()
173 …int32_t julianDay = PERSIAN_EPOCH - 1 + 365 * (eyear - 1) + ClockMath::floorDivide(8 * eyear + 21,… in handleComputeMonthStart()
Djapancal.cpp324 int32_t JapaneseCalendar::getDefaultMonthInYear(int32_t eyear) in getDefaultMonthInYear() argument
333 if(eyear == kEraInfo[era].year) { in getDefaultMonthInYear()
341 int32_t JapaneseCalendar::getDefaultDayInMonth(int32_t eyear, int32_t month) in getDefaultDayInMonth() argument
346 if(eyear == kEraInfo[era].year) { in getDefaultDayInMonth()
Djapancal.h198 virtual int32_t getDefaultMonthInYear(int32_t eyear);
208 virtual int32_t getDefaultDayInMonth(int32_t eyear, int32_t month);
Dgregoimp.h247 static inline int32_t gregorianShift(int32_t eyear);
288 inline int32_t Grego::gregorianShift(int32_t eyear) { in gregorianShift() argument
289 int32_t y = eyear-1; in gregorianShift()
Dcecal.cpp76 CECalendar::handleComputeMonthStart(int32_t eyear,int32_t emonth, UBool /*useMonth*/) const in handleComputeMonthStart() argument
78 return ceToJD(eyear, emonth, 0, getJDEpochOffset()); in handleComputeMonthStart()
Dhebrwcal.h322 virtual int32_t handleGetYearLength(int32_t eyear) const;
361 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()
/external/icu/icu4c/source/i18n/
Dethpccal.cpp83 int32_t eyear; in handleGetExtendedYear() local
85 eyear = internalGet(UCAL_EXTENDED_YEAR, 1); // Default to year 1 in handleGetExtendedYear()
87 eyear = internalGet(UCAL_YEAR, 1 + AMETE_MIHRET_DELTA) in handleGetExtendedYear()
93 eyear = internalGet(UCAL_YEAR, 1); // Default to year 1 in handleGetExtendedYear()
95 eyear = internalGet(UCAL_YEAR, 1) - AMETE_MIHRET_DELTA; in handleGetExtendedYear()
98 return eyear; in handleGetExtendedYear()
104 int32_t eyear, month, day, era, year; in handleComputeFields() local
105 jdToCE(julianDay, getJDEpochOffset(), eyear, month, day); in handleComputeFields()
109 year = eyear + AMETE_MIHRET_DELTA; in handleComputeFields()
111 if (eyear > 0) { in handleComputeFields()
[all …]
Dcoptccal.cpp60 int32_t eyear; in handleGetExtendedYear() local
62 eyear = internalGet(UCAL_EXTENDED_YEAR, 1); // Default to year 1 in handleGetExtendedYear()
67 eyear = 1 - internalGet(UCAL_YEAR, 1); // Convert to extended year in handleGetExtendedYear()
69 eyear = internalGet(UCAL_YEAR, 1); // Default to year 1 in handleGetExtendedYear()
72 return eyear; in handleGetExtendedYear()
78 int32_t eyear, month, day, era, year; in handleComputeFields() local
79 jdToCE(julianDay, getJDEpochOffset(), eyear, month, day); in handleComputeFields()
81 if (eyear <= 0) { in handleComputeFields()
83 year = 1 - eyear; in handleComputeFields()
86 year = eyear; in handleComputeFields()
[all …]
Dgregocal.cpp367 int32_t eyear, month, dayOfMonth, dayOfYear, unusedRemainder; in handleComputeFields() local
384 eyear = getGregorianYear(); in handleComputeFields()
389eyear = (int32_t) ClockMath::floorDivide((4.0*julianEpochDay) + 1464.0, (int32_t) 1461, unusedRema… in handleComputeFields()
392 int32_t january1 = 365*(eyear-1) + ClockMath::floorDivide(eyear-1, (int32_t)4); in handleComputeFields()
401 UBool isLeap = ((eyear&0x3) == 0); // equiv. to (eyear%4 == 0) in handleComputeFields()
425 if((eyear == fGregorianCutoverYear) && (julianDay >= fCutoverJulianDay)) { in handleComputeFields()
427 int32_t gregShift = Grego::gregorianShift(eyear); in handleComputeFields()
438 internalSet(UCAL_EXTENDED_YEAR, eyear); in handleComputeFields()
440 if (eyear < 1) { in handleComputeFields()
442 eyear = 1 - eyear; in handleComputeFields()
[all …]
Dhebrwcal.cpp527 int32_t HebrewCalendar::handleGetYearLength(int32_t eyear) const { in handleGetYearLength()
529 return startOfYear(eyear+1, status) - startOfYear(eyear, status); in handleGetYearLength()
632 int32_t HebrewCalendar::handleComputeMonthStart(int32_t eyear, int32_t month, UBool /*useMonth*/) c… in handleComputeMonthStart() argument
641 month += monthsInYear(--eyear); in handleComputeMonthStart()
645 month -= monthsInYear(eyear++); in handleComputeMonthStart()
648 int32_t day = startOfYear(eyear, status); in handleComputeMonthStart()
655 if (isLeapYear(eyear)) { in handleComputeMonthStart()
656 day += LEAP_MONTH_START[month][yearType(eyear)]; in handleComputeMonthStart()
658 day += MONTH_START[month][yearType(eyear)]; in handleComputeMonthStart()
Dindiancal.cpp111 int32_t IndianCalendar::handleGetMonthLength(int32_t eyear, int32_t month) const { in handleGetMonthLength() argument
113 eyear += ClockMath::floorDivide(month, 12, month); in handleGetMonthLength()
116 if (isGregorianLeap(eyear + INDIAN_ERA_START) && month == 0) { in handleGetMonthLength()
132 int32_t IndianCalendar::handleGetYearLength(int32_t eyear) const { in handleGetYearLength()
133 return isGregorianLeap(eyear + INDIAN_ERA_START) ? 366 : 365; in handleGetYearLength()
240 int32_t IndianCalendar::handleComputeMonthStart(int32_t eyear, int32_t month, UBool /* useMonth */ … in handleComputeMonthStart() argument
247 eyear += (int32_t)ClockMath::floorDivide(month, 12, month); in handleComputeMonthStart()
256 double jd = IndianToJD(eyear ,imonth, 1); in handleComputeMonthStart()
Dpersncal.cpp166 int32_t PersianCalendar::handleComputeMonthStart(int32_t eyear, int32_t month, UBool /*useMonth*/) … in handleComputeMonthStart() argument
170 eyear += ClockMath::floorDivide(month, 12, month); in handleComputeMonthStart()
173 …int32_t julianDay = PERSIAN_EPOCH - 1 + 365 * (eyear - 1) + ClockMath::floorDivide(8 * eyear + 21,… in handleComputeMonthStart()
Djapancal.cpp324 int32_t JapaneseCalendar::getDefaultMonthInYear(int32_t eyear) in getDefaultMonthInYear() argument
333 if(eyear == kEraInfo[era].year) { in getDefaultMonthInYear()
341 int32_t JapaneseCalendar::getDefaultDayInMonth(int32_t eyear, int32_t month) in getDefaultDayInMonth() argument
346 if(eyear == kEraInfo[era].year) { in getDefaultDayInMonth()
Djapancal.h198 virtual int32_t getDefaultMonthInYear(int32_t eyear);
208 virtual int32_t getDefaultDayInMonth(int32_t eyear, int32_t month);
Dgregoimp.h247 static inline int32_t gregorianShift(int32_t eyear);
288 inline int32_t Grego::gregorianShift(int32_t eyear) { in gregorianShift() argument
289 int32_t y = eyear-1; in gregorianShift()
Dcecal.cpp76 CECalendar::handleComputeMonthStart(int32_t eyear,int32_t emonth, UBool /*useMonth*/) const in handleComputeMonthStart() argument
78 return ceToJD(eyear, emonth, 0, getJDEpochOffset()); in handleComputeMonthStart()
Dhebrwcal.h322 virtual int32_t handleGetYearLength(int32_t eyear) const;
361 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()
/external/chromium_org/third_party/icu/source/i18n/unicode/
Dgregocal.h508 virtual int32_t handleComputeMonthStart(int32_t eyear, int32_t month,
537 virtual int32_t handleGetYearLength(int32_t eyear) const;

12