Home
last modified time | relevance | path

Searched refs:UCAL_ERA (Results 1 – 25 of 29) sorted by relevance

12

/external/icu/icu4c/source/i18n/
Dtaiwncal.cpp71 && newerField(UCAL_EXTENDED_YEAR, UCAL_ERA) == UCAL_EXTENDED_YEAR) { in handleGetExtendedYear()
74 int32_t era = internalGet(UCAL_ERA, MINGUO); in handleGetExtendedYear()
89 internalSet(UCAL_ERA, MINGUO); in handleComputeFields()
92 internalSet(UCAL_ERA, BEFORE_MINGUO); in handleComputeFields()
99 if(field == UCAL_ERA) { in handleGetLimit()
115 int32_t era = internalGet(UCAL_ERA);
129 internalSet(UCAL_ERA, era);
Dbuddhcal.cpp90 internalSet(UCAL_ERA, 0); in handleComputeFields()
96 if(field == UCAL_ERA) { in handleGetLimit()
108 int32_t era = internalGet(UCAL_ERA);
122 internalSet(UCAL_ERA, era);
Djapancal.cpp358 return internalGet(UCAL_ERA, kCurrentEra); in internalGetEra()
368 newerField(UCAL_EXTENDED_YEAR, UCAL_ERA) == UCAL_EXTENDED_YEAR) { in handleGetExtendedYear()
450 internalSet(UCAL_ERA, low); in handleComputeFields()
479 case UCAL_ERA: in handleGetLimit()
506 int32_t era = get(UCAL_ERA, status); in getActualMaximum()
Dgregocal.cpp227 set(UCAL_ERA, AD); in GregorianCalendar()
242 set(UCAL_ERA, AD); in GregorianCalendar()
260 set(UCAL_ERA, AD); in GregorianCalendar()
359 if (cal->get(UCAL_ERA, status) == BC) in setGregorianChange()
444 internalSet(UCAL_ERA, era); in handleComputeFields()
1147 int32_t era = cal->get(UCAL_ERA, status); in getActualMaximum()
1158 if (cal->get(UCAL_YEAR, status) == y && cal->get(UCAL_ERA, status) == era) { in getActualMaximum()
1199 int32_t era = internalGet(UCAL_ERA, AD); in handleGetExtendedYear()
1227 int32_t era = internalGet(UCAL_ERA, AD); in handleGetExtendedYearFromWeekFields()
1257 return isSet(UCAL_ERA) ? internalGet(UCAL_ERA) : (int32_t)AD; in internalGetEra()
Dethpccal.cpp91 int32_t era = internalGet(UCAL_ERA, AMETE_MIHRET); in handleGetExtendedYear()
121 internalSet(UCAL_ERA, era); in handleComputeFields()
131 if (isAmeteAlemEra() && field == UCAL_ERA) { in handleGetLimit()
Dcoptccal.cpp65 int32_t era = internalGet(UCAL_ERA, CE); in handleGetExtendedYear()
90 internalSet(UCAL_ERA, era); in handleComputeFields()
Dchnsecal.cpp221 if (newestStamp(UCAL_ERA, UCAL_YEAR, kUnset) <= fStamp[UCAL_EXTENDED_YEAR]) { in handleGetExtendedYear()
224 int32_t cycle = internalGet(UCAL_ERA, 1) - 1; // 0-based cycle in handleGetExtendedYear()
729 internalSet(UCAL_ERA, cycle + 1); in computeChineseFields()
Dpersncal.cpp226 internalSet(UCAL_ERA, 0); in handleComputeFields()
Dcalendar.cpp1488 (1 << UCAL_ERA) | in computeFields()
1722 internalSet(UCAL_ERA, era); in handleComputeFields()
1751 case UCAL_ERA: in roll()
1821 int32_t era = get(UCAL_ERA, status); in roll()
2110 case UCAL_ERA: in add()
2112 pinField(UCAL_ERA, status); in add()
2125 int32_t era = get(UCAL_ERA, status); in add()
3192 int32_t bestStamp = newestStamp(UCAL_ERA, UCAL_DAY_OF_WEEK_IN_MONTH, kUnset); in computeJulianDay()
Dindiancal.cpp326 internalSet(UCAL_ERA, 0); in handleComputeFields()
Ddtitvfmt.cpp312 if ( fromCalendar.get(UCAL_ERA,status) != toCalendar.get(UCAL_ERA,status)) { in format()
313 field = UCAL_ERA; in format()
Dhebrwcal.cpp603 internalSet(UCAL_ERA, 0); in handleComputeFields()
Dislamcal.cpp686 internalSet(UCAL_ERA, 0); in handleComputeFields()
Dsmpdtfmt.cpp1163 /*GyM*/ UCAL_ERA, UCAL_YEAR, UCAL_MONTH,
2784 cal.set(UCAL_ERA, value); in subParse()
2788 …ps = matchString(text, start, UCAL_ERA, fSymbols->fNarrowEras, fSymbols->fNarrowErasCount, NULL, c… in subParse()
2790 … ps = matchString(text, start, UCAL_ERA, fSymbols->fEraNames, fSymbols->fEraNamesCount, NULL, cal); in subParse()
2792 … ps = matchString(text, start, UCAL_ERA, fSymbols->fEras, fSymbols->fErasCount, NULL, cal); in subParse()
Ddtitvinf.cpp553 case UCAL_ERA: in calendarFieldToIntervalIndex()
/external/icu/icu4c/source/test/intltest/
Dincaltst.cpp179 cal.set(UCAL_ERA, era); in quasiGregorianTest()
197 int e = cal.get(UCAL_ERA, status); in quasiGregorianTest()
204 logln((UnicodeString)"OK: " + D + " => " + cal.get(UCAL_ERA, status) + ":" + in quasiGregorianTest()
208 … errln((UnicodeString)"Fail: (millis to fields)" + D + " => " + cal.get(UCAL_ERA, status) + ":" + in quasiGregorianTest()
650 int32_t gotEra = cal2->get(UCAL_ERA, s2); in TestJapanese3860()
690 int32_t gotEra = cal2->get(UCAL_ERA, s2); in TestJapanese3860()
Dcalcasts.cpp61 checkField(cal, UCAL_ERA, cases[i].era, status); in doTestCases()
73 cal->set(UCAL_ERA, cases[i].era); in doTestCases()
Dcalregts.cpp1454 cal->set(UCAL_ERA, y < 1 ? GregorianCalendar::BC : GregorianCalendar::AD); in test4125881()
1487 cal->set(UCAL_ERA, GregorianCalendar::BC); in test4125892()
1583 int32_t era1 = calendar->get(UCAL_ERA,status); in test4145158()
1587 int32_t era2 = calendar->get(UCAL_ERA,status); in test4145158()
1706 if (calendar->get(UCAL_ERA, status) != GregorianCalendar::BC || U_FAILURE(status)) { in Test4149677()
1712 if (calendar->get(UCAL_ERA, status) != GregorianCalendar::AD || U_FAILURE(status)) { in Test4149677()
Dtzrulets.cpp290 cal->set(UCAL_ERA, GregorianCalendar::BC); in TestSimpleRuleBasedTimeZone()
293 era = cal->get(UCAL_ERA, status); in TestSimpleRuleBasedTimeZone()
329 cal->set(UCAL_ERA, GregorianCalendar::AD); in TestSimpleRuleBasedTimeZone()
332 era = cal->get(UCAL_ERA, status); in TestSimpleRuleBasedTimeZone()
Dtzregts.cpp384 tzOffset = testTZ->getOffset((uint8_t)testCal->get(UCAL_ERA, status), in checkCalendar314()
469 int32_t era = cal->get(UCAL_ERA, status); in Test4126678()
Ddtfmtrtts.cpp408 if( ! hasEra && getField(d[0], UCAL_ERA) == GregorianCalendar::BC) in test()
Dcallimts.cpp277 UCAL_ERA, in doLimitsTest()
Dtzbdtest.cpp212 int32_t offset = time_zone->getOffset((uint8_t)gc->get(UCAL_ERA, status), in verifyDST()
/external/icu/icu4c/source/test/cintltst/
Dccaltst.c2095 ucal_set(ucalTest, UCAL_ERA, 0); in TestAddRollEra0AndEraBounds()
2110 ucal_set(ucalTest, UCAL_ERA, 0); in TestAddRollEra0AndEraBounds()
2125 ucal_set(ucalTest, UCAL_ERA, 0); in TestAddRollEra0AndEraBounds()
2129 eraAfter = ucal_get(ucalTest, UCAL_ERA, &status); in TestAddRollEra0AndEraBounds()
2144 eraAfter = ucal_get(ucalTest, UCAL_ERA, &status); in TestAddRollEra0AndEraBounds()
2157 int32_t eraMin = ucal_getLimit(ucalTest, UCAL_ERA, UCAL_MINIMUM, &status); in TestAddRollEra0AndEraBounds()
2167 ucal_set(ucalTest, UCAL_ERA, 0); in TestAddRollEra0AndEraBounds()
2168 eraMax = ucal_getLimit(ucalTest, UCAL_ERA, UCAL_MAXIMUM, &status); in TestAddRollEra0AndEraBounds()
2174 ucal_set(ucalTest, UCAL_ERA, 1); in TestAddRollEra0AndEraBounds()
2188 ucal_set(ucalTest, UCAL_ERA, 1); in TestAddRollEra0AndEraBounds()
[all …]
/external/icu/icu4c/source/i18n/unicode/
Ducal.h189 UCAL_ERA, enumerator

12