/third_party/icu/ohos_icu4j/src/main/java/ohos/global/icu/util/ |
D | JapaneseCalendar.java | 169 set(ERA, era); in JapaneseCalendar() 187 set(ERA, CURRENT_ERA); in JapaneseCalendar() 213 set(ERA, CURRENT_ERA); in JapaneseCalendar() 272 newerField(EXTENDED_YEAR, ERA) == EXTENDED_YEAR) { in handleGetExtendedYear() 277 … + ERA_RULES.getStartYear(internalGet(ERA, CURRENT_ERA)) // add gregorian starting year in handleGetExtendedYear() 293 int era = internalGet(ERA, CURRENT_ERA); in getDefaultMonthInYear() 317 int era = internalGet(ERA, CURRENT_ERA); in getDefaultDayInMonth() 337 internalSet(ERA, eraIdx); in handleComputeFields() 397 case ERA: in handleGetLimit() 446 int era = get(Calendar.ERA); in getActualMaximum()
|
D | TaiwanCalendar.java | 188 && newerField(EXTENDED_YEAR, ERA) == EXTENDED_YEAR) { in handleGetExtendedYear() 191 int era = internalGet(ERA, MINGUO); in handleGetExtendedYear() 208 internalSet(ERA, MINGUO); in handleComputeFields() 211 internalSet(ERA, BEFORE_MINGUO); in handleComputeFields() 222 if (field == ERA) { in handleGetLimit()
|
D | GregorianCalendar.java | 398 set(ERA, AD); in GregorianCalendar() 420 set(ERA, AD); in GregorianCalendar() 446 set(ERA, AD); in GregorianCalendar() 652 int era = cal.get(ERA); in getActualMaximum() 663 if (cal.get(YEAR) == y && cal.get(ERA) == era) { in getActualMaximum() 778 internalSet(ERA, era); in handleComputeFields() 794 int era = internalGet(ERA, AD); in handleGetExtendedYear()
|
D | EthiopicCalendar.java | 286 int era = internalGet(ERA, AMETE_MIHRET); in handleGetExtendedYear() 325 internalSet(ERA, era); in handleComputeFields() 339 if (isAmeteAlemEra() && field == ERA) { in handleGetLimit()
|
D | BuddhistCalendar.java | 210 internalSet(ERA, 0); in handleComputeFields() 220 if (field == ERA) { in handleGetLimit()
|
D | CopticCalendar.java | 234 int era = internalGet(ERA, CE); in handleGetExtendedYear() 269 internalSet(ERA, era); in handleComputeFields()
|
D | SimpleDateRule.java | 178 c.set(Calendar.ERA, c.getMaximum(Calendar.ERA)); in computeInYear()
|
D | ChineseCalendar.java | 264 this.set(ERA, era); in ChineseCalendar() 434 if (newestStamp(ERA, YEAR, UNSET) <= getStamp(EXTENDED_YEAR)) { in handleGetExtendedYear() 437 int cycle = internalGet(ERA, 1) - 1; // 0-based cycle in handleGetExtendedYear() 891 internalSet(ERA, cycle+1); in computeChineseFields()
|
/third_party/icu/icu4j/main/classes/core/src/com/ibm/icu/util/ |
D | JapaneseCalendar.java | 177 set(ERA, era); in JapaneseCalendar() 196 set(ERA, CURRENT_ERA); in JapaneseCalendar() 223 set(ERA, CURRENT_ERA); in JapaneseCalendar() 283 newerField(EXTENDED_YEAR, ERA) == EXTENDED_YEAR) { in handleGetExtendedYear() 288 … + ERA_RULES.getStartYear(internalGet(ERA, CURRENT_ERA)) // add gregorian starting year in handleGetExtendedYear() 304 int era = internalGet(ERA, CURRENT_ERA); in getDefaultMonthInYear() 328 int era = internalGet(ERA, CURRENT_ERA); in getDefaultDayInMonth() 349 internalSet(ERA, eraIdx); in handleComputeFields() 416 case ERA: in handleGetLimit() 466 int era = get(Calendar.ERA); in getActualMaximum()
|
D | TaiwanCalendar.java | 201 && newerField(EXTENDED_YEAR, ERA) == EXTENDED_YEAR) { in handleGetExtendedYear() 204 int era = internalGet(ERA, MINGUO); in handleGetExtendedYear() 222 internalSet(ERA, MINGUO); in handleComputeFields() 225 internalSet(ERA, BEFORE_MINGUO); in handleComputeFields() 237 if (field == ERA) { in handleGetLimit()
|
D | GregorianCalendar.java | 410 set(ERA, AD); in GregorianCalendar() 433 set(ERA, AD); in GregorianCalendar() 460 set(ERA, AD); in GregorianCalendar() 674 int era = cal.get(ERA); in getActualMaximum() 685 if (cal.get(YEAR) == y && cal.get(ERA) == era) { in getActualMaximum() 803 internalSet(ERA, era); in handleComputeFields() 820 int era = internalGet(ERA, AD); in handleGetExtendedYear()
|
D | EthiopicCalendar.java | 313 int era = internalGet(ERA, AMETE_MIHRET); in handleGetExtendedYear() 353 internalSet(ERA, era); in handleComputeFields() 368 if (isAmeteAlemEra() && field == ERA) { in handleGetLimit()
|
D | BuddhistCalendar.java | 223 internalSet(ERA, 0); in handleComputeFields() 234 if (field == ERA) { in handleGetLimit()
|
D | CopticCalendar.java | 258 int era = internalGet(ERA, CE); in handleGetExtendedYear() 293 internalSet(ERA, era); in handleComputeFields()
|
D | SimpleDateRule.java | 180 c.set(Calendar.ERA, c.getMaximum(Calendar.ERA)); in computeInYear()
|
D | ChineseCalendar.java | 270 this.set(ERA, era); in ChineseCalendar() 446 if (newestStamp(ERA, YEAR, UNSET) <= getStamp(EXTENDED_YEAR)) { in handleGetExtendedYear() 449 int cycle = internalGet(ERA, 1) - 1; // 0-based cycle in handleGetExtendedYear() 910 internalSet(ERA, cycle+1); in computeChineseFields()
|
/third_party/icu/icu4c/source/test/testdata/ |
D | calendar.txt | 28 // "0/1/1912/june/4 == gregorian year=1912, ERA=AD, same month, same day 31 "ERA=1,YEAR=1,MONTH=JUNE,DATE=4", // tw 32 "ERA=1,YEAR=1912,MONTH=,DATE=" // greg 36 "ERA=1,YEAR=3,MONTH=FEBRUARY,DATE=12", // tw 37 "ERA=1,YEAR=1914,MONTH=,DATE=" // greg 41 "ERA=1,YEAR=96,MONTH=FEBRUARY,DATE=12", // tw 42 "ERA=1,YEAR=2007,MONTH=,DATE=" // greg 48 "ERA=0,YEAR=2,MONTH=JANUARY,DATE=24", // tw 49 "ERA=1,YEAR=1910,MONTH=JANUARY,DATE=24", // greg 188 "ERA=1,YEAR=1,MONTH=JUNE,DATE=4", // tw [all …]
|
D | format.txt | 29 …// or a calendar spec ERA=0,YEAR=1, etc.. applied to the calendar type specified by the loc… 39 "ERA=1,YEAR=2007,MONTH=AUGUST,DATE=8,HOUR_OF_DAY=18,MINUTE=54,SECOND=0", 46 "ERA=1,YEAR=98,MONTH=0,DATE=24", 54 "ERA=0,YEAR=2,MONTH=0,DATE=24", 96 "ERA=1,YEAR=2012,MONTH=OCTOBER,DATE=8,HOUR_OF_DAY=23,MINUTE=59,SECOND=0", 104 "ERA=1,YEAR=2012,MONTH=OCTOBER,DATE=8,HOUR_OF_DAY=23,MINUTE=59,SECOND=0", 119 "ERA=1,YEAR=2012,MONTH=OCTOBER,DATE=8,HOUR_OF_DAY=23,MINUTE=59,SECOND=0", 127 "ERA=1,YEAR=2012,MONTH=OCTOBER,DATE=8,HOUR_OF_DAY=23,MINUTE=59,SECOND=0", 151 "ERA=1,YEAR=2012,MONTH=OCTOBER,DATE=8,HOUR_OF_DAY=23,MINUTE=59,SECOND=0", 159 "ERA=1,YEAR=2012,MONTH=OCTOBER,DATE=8,HOUR_OF_DAY=23,MINUTE=59,SECOND=0", [all …]
|
/third_party/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/calendar/ |
D | JapaneseTest.java | 114 cal.set(Calendar.ERA, JapaneseCalendar.MEIJI); in TestCoverage() 116 logln("min era: " + cal.getMinimum(Calendar.ERA)); in TestCoverage() 170 int gotEra = cal.get(Calendar.ERA); in Test3860() 203 gotEra = cal2.get(Calendar.ERA); in Test3860() 362 int expected0[] = { Calendar.ERA, 234, in Test5345calendar() 368 c.set(Calendar.ERA, JapaneseCalendar.MEIJI); in Test5345calendar() 371 int expectedA[] = { Calendar.ERA, JapaneseCalendar.MEIJI }; in Test5345calendar() 377 c.set(Calendar.ERA, JapaneseCalendar.MEIJI); in Test5345calendar() 383 int expectedC[] = { Calendar.ERA, JapaneseCalendar.MEIJI -1}; in Test5345calendar() 392 c.set(Calendar.ERA, JapaneseCalendar.MEIJI); in Test5345calendar() [all …]
|
D | IBMCalendarTest.java | 179 cal.set(Calendar.ERA, era); in quasiGregorianTest() 192 int e = cal.get(Calendar.ERA); in quasiGregorianTest() 195 logln("OK: " + D + " => " + cal.get(Calendar.ERA) + ":" + in quasiGregorianTest() 199 logln("Fail: " + D + " => " + cal.get(Calendar.ERA) + ":" + in quasiGregorianTest() 900 /*int i =*/ bcal.getMinimum(Calendar.ERA); in TestCoverage() 1617 ucalTest.set(Calendar.ERA, 0); in TestAddRollEra0AndEraBounds() 1627 ucalTest.set(Calendar.ERA, 0); in TestAddRollEra0AndEraBounds() 1637 ucalTest.set(Calendar.ERA, 0); in TestAddRollEra0AndEraBounds() 1641 eraAfter = ucalTest.get(Calendar.ERA); in TestAddRollEra0AndEraBounds() 1651 eraAfter = ucalTest.get(Calendar.ERA); in TestAddRollEra0AndEraBounds() [all …]
|
D | ChineseTestCase.java | 38 set(Calendar.ERA, era); in ChineseTestCase() 52 get(Calendar.YEAR) + "of" + get(Calendar.ERA) + in toString()
|
/third_party/icu/ohos_icu4j/src/main/tests/ohos/global/icu/dev/test/calendar/ |
D | JapaneseTest.java | 117 cal.set(Calendar.ERA, JapaneseCalendar.MEIJI); in TestCoverage() 119 logln("min era: " + cal.getMinimum(Calendar.ERA)); in TestCoverage() 173 int gotEra = cal.get(Calendar.ERA); in Test3860() 206 gotEra = cal2.get(Calendar.ERA); in Test3860() 365 int expected0[] = { Calendar.ERA, 234, in Test5345calendar() 371 c.set(Calendar.ERA, JapaneseCalendar.MEIJI); in Test5345calendar() 374 int expectedA[] = { Calendar.ERA, JapaneseCalendar.MEIJI }; in Test5345calendar() 380 c.set(Calendar.ERA, JapaneseCalendar.MEIJI); in Test5345calendar() 386 int expectedC[] = { Calendar.ERA, JapaneseCalendar.MEIJI -1}; in Test5345calendar() 395 c.set(Calendar.ERA, JapaneseCalendar.MEIJI); in Test5345calendar() [all …]
|
D | ChineseTestCase.java | 41 set(Calendar.ERA, era); in ChineseTestCase() 55 get(Calendar.YEAR) + "of" + get(Calendar.ERA) + in toString()
|
D | IBMCalendarTest.java | 179 cal.set(Calendar.ERA, era); in quasiGregorianTest() 192 int e = cal.get(Calendar.ERA); in quasiGregorianTest() 195 logln("OK: " + D + " => " + cal.get(Calendar.ERA) + ":" + in quasiGregorianTest() 199 logln("Fail: " + D + " => " + cal.get(Calendar.ERA) + ":" + in quasiGregorianTest() 900 /*int i =*/ bcal.getMinimum(Calendar.ERA); in TestCoverage() 1617 ucalTest.set(Calendar.ERA, 0); in TestAddRollEra0AndEraBounds() 1627 ucalTest.set(Calendar.ERA, 0); in TestAddRollEra0AndEraBounds() 1637 ucalTest.set(Calendar.ERA, 0); in TestAddRollEra0AndEraBounds() 1641 eraAfter = ucalTest.get(Calendar.ERA); in TestAddRollEra0AndEraBounds() 1651 eraAfter = ucalTest.get(Calendar.ERA); in TestAddRollEra0AndEraBounds() [all …]
|
/third_party/icu/icu4j/main/classes/core/src/com/ibm/icu/text/ |
D | DateIntervalFormat.java | 832 if ( fromCalendar.get(Calendar.ERA) != toCalendar.get(Calendar.ERA) ) { in getPatterns() 833 field = Calendar.ERA; in getPatterns() 937 if ( fromCalendar.get(Calendar.ERA) != toCalendar.get(Calendar.ERA) ) { in formatImpl() 938 field = Calendar.ERA; in formatImpl() 1458 CALENDAR_FIELD_TO_PATTERN_LETTER[Calendar.ERA], ptn); in initializeIntervalPattern() 1505 CALENDAR_FIELD_TO_PATTERN_LETTER[Calendar.ERA], ptn); in initializeIntervalPattern() 1536 if ( !fieldExistsInSkeleton(Calendar.ERA, dateSkeleton) ) { in initializeIntervalPattern() 1539 CALENDAR_FIELD_TO_PATTERN_LETTER[Calendar.ERA] + skeleton; in initializeIntervalPattern() 1540 genFallbackPattern(Calendar.ERA, skeleton, intervalPatterns, dtpng); in initializeIntervalPattern() 1947 … genIntervalPattern(Calendar.ERA, skeleton, bestSkeleton, differenceInfo, intervalPatterns); in genSeparateDateTimePtn()
|