/external/icu/icu4c/source/i18n/ |
D | ethpccal.cpp | 83 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 …]
|
D | coptccal.cpp | 60 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 …]
|
D | gregocal.cpp | 367 int32_t eyear, month, dayOfMonth, dayOfYear, unusedRemainder; in handleComputeFields() local 384 eyear = getGregorianYear(); in handleComputeFields() 389 …eyear = (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 …]
|
D | hebrwcal.cpp | 527 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()
|
D | indiancal.cpp | 110 int32_t IndianCalendar::handleGetMonthLength(int32_t eyear, int32_t month) const { in handleGetMonthLength() argument 112 eyear += ClockMath::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 */ … in handleComputeMonthStart() argument 246 eyear += (int32_t)ClockMath::floorDivide(month, 12, month); in handleComputeMonthStart() 255 double jd = IndianToJD(eyear ,imonth, 1); in handleComputeMonthStart()
|
D | persncal.cpp | 166 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()
|
D | japancal.cpp | 324 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()
|
D | japancal.h | 198 virtual int32_t getDefaultMonthInYear(int32_t eyear); 208 virtual int32_t getDefaultDayInMonth(int32_t eyear, int32_t month);
|
D | gregoimp.h | 247 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()
|
D | cecal.cpp | 76 CECalendar::handleComputeMonthStart(int32_t eyear,int32_t emonth, UBool /*useMonth*/) const in handleComputeMonthStart() argument 78 return ceToJD(eyear, emonth, 0, getJDEpochOffset()); in handleComputeMonthStart()
|
D | hebrwcal.h | 322 virtual int32_t handleGetYearLength(int32_t eyear) const; 361 virtual int32_t handleComputeMonthStart(int32_t eyear, int32_t month,
|
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/util/ |
D | GregorianCalendar.java | 736 protected int handleGetYearLength(int eyear) { in handleGetYearLength() argument 737 return isLeapYear(eyear) ? 366 : 365; in handleGetYearLength() 757 int eyear, month, dayOfMonth, dayOfYear; in handleComputeFields() local 763 eyear = getGregorianYear(); in handleComputeFields() 768 eyear = (int) floorDivide(4*julianEpochDay + 1464, 1461); in handleComputeFields() 771 long january1 = 365*(eyear-1) + floorDivide(eyear-1, 4); in handleComputeFields() 780 boolean isLeap = ((eyear&0x3) == 0); // equiv. to (eyear%4 == 0) in handleComputeFields() 795 internalSet(EXTENDED_YEAR, eyear); in handleComputeFields() 797 if (eyear < 1) { in handleComputeFields() 799 eyear = 1 - eyear; in handleComputeFields() [all …]
|
D | HebrewCalendar.java | 746 protected int handleGetYearLength(int eyear) { in handleGetYearLength() argument 747 return (int)(startOfYear(eyear+1) - startOfYear(eyear)); in handleGetYearLength() 846 protected int handleComputeMonthStart(int eyear, int month, boolean useMonth) { in handleComputeMonthStart() argument 855 month += monthsInYear(--eyear); in handleComputeMonthStart() 859 month -= monthsInYear(eyear++); in handleComputeMonthStart() 862 long day = startOfYear(eyear); in handleComputeMonthStart() 865 if (isLeapYear(eyear)) { in handleComputeMonthStart() 866 day += LEAP_MONTH_START[month][yearType(eyear)]; in handleComputeMonthStart() 868 day += MONTH_START[month][yearType(eyear)]; in handleComputeMonthStart()
|
D | EthiopicCalendar.java | 301 int eyear; in handleGetExtendedYear() local 303 eyear = internalGet(EXTENDED_YEAR, 1); // Default to year 1 in handleGetExtendedYear() 305 eyear = internalGet(YEAR, 1 + AMETE_MIHRET_DELTA) in handleGetExtendedYear() 311 eyear = internalGet(YEAR, 1); // Default to year 1 in handleGetExtendedYear() 313 eyear = internalGet(YEAR, 1) - AMETE_MIHRET_DELTA; in handleGetExtendedYear() 316 return eyear; in handleGetExtendedYear()
|
D | CopticCalendar.java | 249 int eyear; in handleGetExtendedYear() local 251 eyear = internalGet(EXTENDED_YEAR, 1); // Default to year 1 in handleGetExtendedYear() 256 eyear = 1 - internalGet(YEAR, 1); // Convert to extended year in handleGetExtendedYear() 258 eyear = internalGet(YEAR, 1); // Default to year 1 in handleGetExtendedYear() 261 return eyear; in handleGetExtendedYear()
|
D | PersianCalendar.java | 364 protected int handleComputeMonthStart(int eyear, int month, boolean useMonth) { in handleComputeMonthStart() argument 369 eyear += floorDivide(month, 12, rem); in handleComputeMonthStart() 373 int julianDay = PERSIAN_EPOCH - 1 + 365 * (eyear - 1) + floorDivide(8 * eyear + 21, 33); in handleComputeMonthStart()
|
D | BuddhistCalendar.java | 211 protected int handleComputeMonthStart(int eyear, int month, boolean useMonth) { in handleComputeMonthStart() argument 212 return super.handleComputeMonthStart(eyear, month, useMonth); in handleComputeMonthStart()
|
D | CECalendar.java | 176 protected int handleComputeMonthStart(int eyear, in handleComputeMonthStart() argument 179 return ceToJD(eyear, emonth, 0, getJDEpochOffset()); in handleComputeMonthStart()
|
/external/icu/android_icu4j/src/main/java/android/icu/util/ |
D | GregorianCalendar.java | 712 protected int handleGetYearLength(int eyear) { in handleGetYearLength() argument 713 return isLeapYear(eyear) ? 366 : 365; in handleGetYearLength() 732 int eyear, month, dayOfMonth, dayOfYear; in handleComputeFields() local 738 eyear = getGregorianYear(); in handleComputeFields() 743 eyear = (int) floorDivide(4*julianEpochDay + 1464, 1461); in handleComputeFields() 746 long january1 = 365*(eyear-1) + floorDivide(eyear-1, 4); in handleComputeFields() 755 boolean isLeap = ((eyear&0x3) == 0); // equiv. to (eyear%4 == 0) in handleComputeFields() 770 internalSet(EXTENDED_YEAR, eyear); in handleComputeFields() 772 if (eyear < 1) { in handleComputeFields() 774 eyear = 1 - eyear; in handleComputeFields() [all …]
|
D | HebrewCalendar.java | 720 protected int handleGetYearLength(int eyear) { in handleGetYearLength() argument 721 return (int)(startOfYear(eyear+1) - startOfYear(eyear)); in handleGetYearLength() 818 protected int handleComputeMonthStart(int eyear, int month, boolean useMonth) { in handleComputeMonthStart() argument 827 month += monthsInYear(--eyear); in handleComputeMonthStart() 831 month -= monthsInYear(eyear++); in handleComputeMonthStart() 834 long day = startOfYear(eyear); in handleComputeMonthStart() 837 if (isLeapYear(eyear)) { in handleComputeMonthStart() 838 day += LEAP_MONTH_START[month][yearType(eyear)]; in handleComputeMonthStart() 840 day += MONTH_START[month][yearType(eyear)]; in handleComputeMonthStart()
|
D | EthiopicCalendar.java | 277 int eyear; in handleGetExtendedYear() local 279 eyear = internalGet(EXTENDED_YEAR, 1); // Default to year 1 in handleGetExtendedYear() 281 eyear = internalGet(YEAR, 1 + AMETE_MIHRET_DELTA) in handleGetExtendedYear() 287 eyear = internalGet(YEAR, 1); // Default to year 1 in handleGetExtendedYear() 289 eyear = internalGet(YEAR, 1) - AMETE_MIHRET_DELTA; in handleGetExtendedYear() 292 return eyear; in handleGetExtendedYear()
|
D | CopticCalendar.java | 227 int eyear; in handleGetExtendedYear() local 229 eyear = internalGet(EXTENDED_YEAR, 1); // Default to year 1 in handleGetExtendedYear() 234 eyear = 1 - internalGet(YEAR, 1); // Convert to extended year in handleGetExtendedYear() 236 eyear = internalGet(YEAR, 1); // Default to year 1 in handleGetExtendedYear() 239 return eyear; in handleGetExtendedYear()
|
D | PersianCalendar.java | 366 protected int handleComputeMonthStart(int eyear, int month, boolean useMonth) { in handleComputeMonthStart() argument 371 eyear += floorDivide(month, 12, rem); in handleComputeMonthStart() 375 int julianDay = PERSIAN_EPOCH - 1 + 365 * (eyear - 1) + floorDivide(8 * eyear + 21, 33); in handleComputeMonthStart()
|
D | BuddhistCalendar.java | 199 protected int handleComputeMonthStart(int eyear, int month, boolean useMonth) { in handleComputeMonthStart() argument 200 return super.handleComputeMonthStart(eyear, month, useMonth); in handleComputeMonthStart()
|
D | CECalendar.java | 178 protected int handleComputeMonthStart(int eyear, in handleComputeMonthStart() argument 181 return ceToJD(eyear, emonth, 0, getJDEpochOffset()); in handleComputeMonthStart()
|