Home
last modified time | relevance | path

Searched refs:newYear (Results 1 – 22 of 22) sorted by relevance

/third_party/icu/ohos_icu4j/src/main/java/ohos/global/icu/util/
DChineseCalendar.java900 int newYear = newYear(gyear); in computeChineseFields() local
901 if (days < newYear) { in computeChineseFields()
902 newYear = newYear(gyear-1); in computeChineseFields()
904 internalSet(DAY_OF_YEAR, days - newYear + 1); in computeChineseFields()
918 private int newYear(int gyear) { in newYear() method in ChineseCalendar
965 int newYear = newYear(gyear); in handleComputeMonthStart() local
966 int newMoon = newMoonNear(newYear + month * 29, true); in handleComputeMonthStart()
DCalendar.java2801 int newYear = internalGet(field) + amount; in roll() local
2802 if (era > 0 || newYear >= 1) { in roll()
2806 if (newYear < 1) { in roll()
2807 newYear = maxYear - ((-newYear) % maxYear); in roll()
2808 } else if (newYear > maxYear) { in roll()
2809 newYear = ((newYear - 1) % maxYear) + 1; in roll()
2812 } else if (newYear < 1) { in roll()
2813 newYear = 1; in roll()
2819 newYear = 1; in roll()
2821 set(field, newYear); in roll()
/third_party/icu/icu4j/main/classes/core/src/com/ibm/icu/util/
DChineseCalendar.java919 int newYear = newYear(gyear); in computeChineseFields() local
920 if (days < newYear) { in computeChineseFields()
921 newYear = newYear(gyear-1); in computeChineseFields()
923 internalSet(DAY_OF_YEAR, days - newYear + 1); in computeChineseFields()
937 private int newYear(int gyear) { in newYear() method in ChineseCalendar
985 int newYear = newYear(gyear); in handleComputeMonthStart() local
986 int newMoon = newMoonNear(newYear + month * 29, true); in handleComputeMonthStart()
DCalendar.java2899 int newYear = internalGet(field) + amount; in roll() local
2900 if (era > 0 || newYear >= 1) { in roll()
2904 if (newYear < 1) { in roll()
2905 newYear = maxYear - ((-newYear) % maxYear); in roll()
2906 } else if (newYear > maxYear) { in roll()
2907 newYear = ((newYear - 1) % maxYear) + 1; in roll()
2910 } else if (newYear < 1) { in roll()
2911 newYear = 1; in roll()
2917 newYear = 1; in roll()
2919 set(field, newYear); in roll()
/third_party/node/deps/icu-small/source/i18n/
Dbuddhcal.cpp149 int32_t newYear = calendar.get(UCAL_YEAR, status); in initializeSystemDefaultCentury() local
150 gSystemDefaultCenturyStartYear = newYear; in initializeSystemDefaultCentury()
Dchnsecal.cpp337 int32_t theNewYear = newYear(gyear); in handleComputeMonthStart()
702 int32_t theNewYear = newYear(gyear); in computeChineseFields()
704 theNewYear = newYear(gyear-1); in computeChineseFields()
752 int32_t theNewYear = newYear(gyear); in computeChineseFields()
754 theNewYear = newYear(gyear-1); in computeChineseFields()
771 int32_t ChineseCalendar::newYear(int32_t gyear) const { in newYear() function in ChineseCalendar
Dindiancal.cpp348 int32_t newYear = calendar.get ( UCAL_YEAR, status ); in initializeSystemDefaultCentury() local
351 gSystemDefaultCenturyStartYear = newYear; in initializeSystemDefaultCentury()
Dcalendar.cpp1816 int32_t newYear = internalGet(field) + amount; in roll() local
1817 if (era > 0 || newYear >= 1) { in roll()
1821 if (newYear < 1) { in roll()
1822 newYear = maxYear - ((-newYear) % maxYear); in roll()
1823 } else if (newYear > maxYear) { in roll()
1824 newYear = ((newYear - 1) % maxYear) + 1; in roll()
1827 } else if (newYear < 1) { in roll()
1828 newYear = 1; in roll()
1834 newYear = 1; in roll()
1836 set(field, newYear); in roll()
Dchnsecal.h258 virtual int32_t newYear(int32_t gyear) const;
/third_party/skia/third_party/externals/icu/source/i18n/
Dbuddhcal.cpp156 int32_t newYear = calendar.get(UCAL_YEAR, status); in initializeSystemDefaultCentury() local
157 gSystemDefaultCenturyStartYear = newYear; in initializeSystemDefaultCentury()
Dindiancal.cpp345 int32_t newYear = calendar.get ( UCAL_YEAR, status ); in initializeSystemDefaultCentury() local
348 gSystemDefaultCenturyStartYear = newYear; in initializeSystemDefaultCentury()
Dchnsecal.cpp336 int32_t theNewYear = newYear(gyear); in handleComputeMonthStart()
740 int32_t theNewYear = newYear(gyear); in computeChineseFields()
742 theNewYear = newYear(gyear-1); in computeChineseFields()
759 int32_t ChineseCalendar::newYear(int32_t gyear) const { in newYear() function in ChineseCalendar
Dcalendar.cpp1854 int32_t newYear = internalGet(field) + amount; in roll() local
1855 if (era > 0 || newYear >= 1) { in roll()
1859 if (newYear < 1) { in roll()
1860 newYear = maxYear - ((-newYear) % maxYear); in roll()
1861 } else if (newYear > maxYear) { in roll()
1862 newYear = ((newYear - 1) % maxYear) + 1; in roll()
1865 } else if (newYear < 1) { in roll()
1866 newYear = 1; in roll()
1872 newYear = 1; in roll()
1874 set(field, newYear); in roll()
Dchnsecal.h196 virtual int32_t newYear(int32_t gyear) const;
/third_party/icu/icu4c/source/i18n/
Dbuddhcal.cpp156 int32_t newYear = calendar.get(UCAL_YEAR, status); in initializeSystemDefaultCentury() local
157 gSystemDefaultCenturyStartYear = newYear; in initializeSystemDefaultCentury()
Dindiancal.cpp345 int32_t newYear = calendar.get ( UCAL_YEAR, status ); in initializeSystemDefaultCentury() local
348 gSystemDefaultCenturyStartYear = newYear; in initializeSystemDefaultCentury()
Dchnsecal.cpp336 int32_t theNewYear = newYear(gyear); in handleComputeMonthStart()
740 int32_t theNewYear = newYear(gyear); in computeChineseFields()
742 theNewYear = newYear(gyear-1); in computeChineseFields()
759 int32_t ChineseCalendar::newYear(int32_t gyear) const { in newYear() function in ChineseCalendar
Dcalendar.cpp1928 int32_t newYear = internalGet(field) + amount; in roll() local
1929 if (era > 0 || newYear >= 1) { in roll()
1933 if (newYear < 1) { in roll()
1934 newYear = maxYear - ((-newYear) % maxYear); in roll()
1935 } else if (newYear > maxYear) { in roll()
1936 newYear = ((newYear - 1) % maxYear) + 1; in roll()
1939 } else if (newYear < 1) { in roll()
1940 newYear = 1; in roll()
1946 newYear = 1; in roll()
1948 set(field, newYear); in roll()
Dchnsecal.h196 virtual int32_t newYear(int32_t gyear) const;
/third_party/icu/ohos_icu4j/src/main/tests/ohos/global/icu/dev/test/calendar/
DCalendarRegressionTest.java1358 int newYear = calendar.get(field); in Test4167060() local
1364 if (valid && newYear != years[i]) { in Test4167060()
1365 … errln(" FAIL: " + newYear + " should be valid; date, month and time shouldn't change"); in Test4167060()
1366 } else if (!valid && newYear == years[i]) { in Test4167060()
1371 logln(" Note: " + newYear + " > maximum, but still valid"); in Test4167060()
/third_party/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/calendar/
DCalendarRegressionTest.java1355 int newYear = calendar.get(field); in Test4167060() local
1361 if (valid && newYear != years[i]) { in Test4167060()
1362 … errln(" FAIL: " + newYear + " should be valid; date, month and time shouldn't change"); in Test4167060()
1363 } else if (!valid && newYear == years[i]) { in Test4167060()
1368 logln(" Note: " + newYear + " > maximum, but still valid"); in Test4167060()
/third_party/icu/icu4c/source/test/intltest/
Dcalregts.cpp1998 int32_t newYear = calendar->get(field, status); in Test4167060() local
2008 if (valid && newYear != years[i]) { in Test4167060()
2009 …errln(UnicodeString(" FAIL: ") + newYear + " should be valid; date, month and time shouldn't chan… in Test4167060()
2014 errln(UnicodeString(" FAIL: ") + newYear + " should be invalid"); in Test4167060()