Home
last modified time | relevance | path

Searched refs:UCAL_YEAR (Results 1 – 25 of 38) sorted by relevance

12

/external/icu/icu4c/source/i18n/
Dtaiwncal.cpp70 if (newerField(UCAL_EXTENDED_YEAR, UCAL_YEAR) == UCAL_EXTENDED_YEAR in handleGetExtendedYear()
76 year = internalGet(UCAL_YEAR, 1) + kTaiwanEraStart; in handleGetExtendedYear()
78 year = 1 - internalGet(UCAL_YEAR, 1) + kTaiwanEraStart; in handleGetExtendedYear()
90 internalSet(UCAL_YEAR, y); in handleComputeFields()
93 internalSet(UCAL_YEAR, 1-y); in handleComputeFields()
116 int32_t year = internalGet(UCAL_YEAR);
130 internalSet(UCAL_YEAR, year);
158 calendar.add(UCAL_YEAR, -80, status); in initializeSystemDefaultCentury()
161 gSystemDefaultCenturyStartYear = calendar.get(UCAL_YEAR, status); in initializeSystemDefaultCentury()
Dbuddhcal.cpp69 if (newerField(UCAL_EXTENDED_YEAR, UCAL_YEAR) == UCAL_EXTENDED_YEAR) { in handleGetExtendedYear()
73 year = internalGet(UCAL_YEAR, kGregorianEpoch - kBuddhistEraStart) in handleGetExtendedYear()
91 internalSet(UCAL_YEAR, y); in handleComputeFields()
109 int32_t year = internalGet(UCAL_YEAR);
123 internalSet(UCAL_YEAR, year);
152 calendar.add(UCAL_YEAR, -80, status); in initializeSystemDefaultCentury()
154 int32_t newYear = calendar.get(UCAL_YEAR, status); in initializeSystemDefaultCentury()
Dethpccal.cpp84 if (newerField(UCAL_EXTENDED_YEAR, UCAL_YEAR) == UCAL_EXTENDED_YEAR) { 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()
122 internalSet(UCAL_YEAR, year); in handleComputeFields()
152 calendar.add(UCAL_YEAR, -80, status); in initializeSystemDefaultCentury()
155 gSystemDefaultCenturyStartYear = calendar.get(UCAL_YEAR, status); in initializeSystemDefaultCentury()
Dcoptccal.cpp61 if (newerField(UCAL_EXTENDED_YEAR, UCAL_YEAR) == UCAL_EXTENDED_YEAR) { 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()
91 internalSet(UCAL_YEAR, year); in handleComputeFields()
112 calendar.add(UCAL_YEAR, -80, status); in initializeSystemDefaultCentury()
114 gSystemDefaultCenturyStartYear = calendar.get(UCAL_YEAR, status); in initializeSystemDefaultCentury()
Djapancal.cpp367 if (newerField(UCAL_EXTENDED_YEAR, UCAL_YEAR) == UCAL_EXTENDED_YEAR && in handleGetExtendedYear()
372 year = internalGet(UCAL_YEAR) + kEraInfo[internalGetEra()].year - 1; in handleGetExtendedYear()
451 internalSet(UCAL_YEAR, year - kEraInfo[low].year + 1); in handleComputeFields()
484 case UCAL_YEAR: in handleGetLimit()
494 …return GregorianCalendar::handleGetLimit(UCAL_YEAR, UCAL_LIMIT_MAXIMUM) - kEraInfo[kCurrentEra].ye… in handleGetLimit()
505 if (field == UCAL_YEAR) { in getActualMaximum()
512 return handleGetLimit(UCAL_YEAR, UCAL_LIMIT_MAXIMUM); in getActualMaximum()
Dgregocal.cpp228 set(UCAL_YEAR, year); in GregorianCalendar()
243 set(UCAL_YEAR, year); in GregorianCalendar()
261 set(UCAL_YEAR, year); in GregorianCalendar()
358 fGregorianCutoverYear = cal->get(UCAL_YEAR, status); in setGregorianChange()
445 internalSet(UCAL_YEAR, eyear); in handleComputeFields()
620 return isLeapYear(internalGet(UCAL_YEAR)) ? 366 : 365; in yearLength()
1117 case UCAL_YEAR: in getActualMaximum()
1153 int32_t lowGood = kGregorianCalendarLimits[UCAL_YEAR][1]; in getActualMaximum()
1154 int32_t highBad = kGregorianCalendarLimits[UCAL_YEAR][2]+1; in getActualMaximum()
1157 cal->set(UCAL_YEAR, y); in getActualMaximum()
[all …]
Dpersncal.cpp188 if (newerField(UCAL_EXTENDED_YEAR, UCAL_YEAR) == UCAL_EXTENDED_YEAR) { in handleGetExtendedYear()
191 year = internalGet(UCAL_YEAR, 1); // Default to year 1 in handleGetExtendedYear()
227 internalSet(UCAL_YEAR, year); in handleComputeFields()
267 calendar.add(UCAL_YEAR, -80, status); in initializeSystemDefaultCentury()
270 gSystemDefaultCenturyStartYear = calendar.get(UCAL_YEAR, status); in initializeSystemDefaultCentury()
Dhebrwcal.cpp225 int32_t year = get(UCAL_YEAR, status); in add()
257 set(UCAL_YEAR, year); in add()
317 int32_t year = get(UCAL_YEAR, status); in roll()
604 internalSet(UCAL_YEAR, year); in handleComputeFields()
620 if (newerField(UCAL_EXTENDED_YEAR, UCAL_YEAR) == UCAL_EXTENDED_YEAR) { in handleGetExtendedYear()
623 year = internalGet(UCAL_YEAR, 1); // Default to year 1 in handleGetExtendedYear()
701 calendar.add(UCAL_YEAR, -80, status); in initializeSystemDefaultCentury()
704 gSystemDefaultCenturyStartYear = calendar.get(UCAL_YEAR, status); in initializeSystemDefaultCentury()
Dindiancal.cpp267 if (newerField(UCAL_EXTENDED_YEAR, UCAL_YEAR) == UCAL_EXTENDED_YEAR) { in handleGetExtendedYear()
270 year = internalGet(UCAL_YEAR, 1); // Default to year 1 in handleGetExtendedYear()
328 internalSet(UCAL_YEAR, IndianYear); in handleComputeFields()
425 calendar.add(UCAL_YEAR, -80, status); in initializeSystemDefaultCentury()
428 int32_t newYear = calendar.get(UCAL_YEAR, status); in initializeSystemDefaultCentury()
Dislamcal.cpp581 if (newerField(UCAL_EXTENDED_YEAR, UCAL_YEAR) == UCAL_EXTENDED_YEAR) { in handleGetExtendedYear()
584 year = internalGet(UCAL_YEAR, 1); // Default to year 1 in handleGetExtendedYear()
687 internalSet(UCAL_YEAR, year); in handleComputeFields()
747 calendar.add(UCAL_YEAR, -80, status); in initializeSystemDefaultCentury()
750 gSystemDefaultCenturyStartYear = calendar.get(UCAL_YEAR, status); in initializeSystemDefaultCentury()
Dchnsecal.cpp221 if (newestStamp(UCAL_ERA, UCAL_YEAR, kUnset) <= fStamp[UCAL_EXTENDED_YEAR]) { in handleGetExtendedYear()
226 year = cycle * 60 + internalGet(UCAL_YEAR, 1) - (fEpochYear - CHINESE_EPOCH_YEAR); in handleGetExtendedYear()
730 internalSet(UCAL_YEAR, yearOfCycle + 1); in computeChineseFields()
871 calendar.add(UCAL_YEAR, -80, status); in initializeSystemDefaultCentury()
873 gSystemDefaultCenturyStartYear = calendar.get(UCAL_YEAR, status); in initializeSystemDefaultCentury()
Ddtitvfmt.cpp299 } else if ( fromCalendar.get(UCAL_YEAR, status) != in format()
300 toCalendar.get(UCAL_YEAR, status) ) { in format()
301 field = UCAL_YEAR; in format()
660 setPatternInfo(UCAL_YEAR, NULL, &pattern, fInfo->getDefaultOrder()); in initializePattern()
685 setPatternInfo(UCAL_YEAR, NULL, &pattern, fInfo->getDefaultOrder()); in initializePattern()
709 if ( !fieldExistsInSkeleton(UCAL_YEAR, dateSkeleton) ) { in initializePattern()
712 setFallbackPattern(UCAL_YEAR, skeleton, status); in initializePattern()
994 setIntervalPattern(UCAL_YEAR, skeleton, bestSkeleton, differenceInfo, in setSeparateDateTimePtn()
Dsmpdtfmt.cpp954 fDefaultCenturyStartYear = fCalendar->get(UCAL_YEAR, status); in parseAmbiguousDatesAsAfter()
1149 /*GyM*/ UCAL_ERA, UCAL_YEAR, UCAL_MONTH,
1163 /*U*/ UCAL_YEAR,
1475 if (hc->isLeapYear(hc->get(UCAL_YEAR,status)) && value == 6 && count >= 3 ) in subFormat()
1477 if (!hc->isLeapYear(hc->get(UCAL_YEAR,status)) && value >= 6 && count < 3 ) in subFormat()
2166 cal.set(UCAL_YEAR, fDefaultCenturyStartYear + 100); in parse()
2540 if (field == UCAL_YEAR) { in matchString()
2811 cal.set(UCAL_YEAR, value); in subParse()
2844 …int32_t newStart = matchString(text, start, UCAL_YEAR, fSymbols->fShortYearNames, fSymbols->fShort… in subParse()
2850 cal.set(UCAL_YEAR, value); in subParse()
[all …]
Dcalendar.cpp1199 set(UCAL_YEAR, year); in set()
1209 set(UCAL_YEAR, year); in set()
1221 set(UCAL_YEAR, year); in set()
1489 (1 << UCAL_YEAR) | in computeFields()
1723 internalSet(UCAL_YEAR, eyear); in handleComputeFields()
1814 case UCAL_YEAR: in roll()
2115 case UCAL_YEAR: in add()
2905 …{ kResolveRemap | UCAL_DAY_OF_MONTH, UCAL_YEAR, kResolveSTOP }, // if YEAR is set over YEAR_WOY u…
2935 { UCAL_YEAR, kResolveSTOP },
3641 case UCAL_YEAR: in prepareGetActual()
/external/icu/icu4c/source/test/cintltst/
Dccaltst.c780 if(ucal_get(cal, UCAL_YEAR, &status)!=1999 || ucal_get(cal, UCAL_MONTH, &status)!=2 || in TestFieldGetSet()
793 ucal_set(cal, UCAL_YEAR, 1997); in TestFieldGetSet()
798 ucal_set(cal, UCAL_YEAR, 1997); in TestFieldGetSet()
804 ucal_set(cal, UCAL_YEAR, 1997); in TestFieldGetSet()
812 ucal_set(cal, UCAL_YEAR, 1997); in TestFieldGetSet()
824 ucal_set(cal, UCAL_YEAR, 1997); in TestFieldGetSet()
830 ucal_set(cal, UCAL_YEAR, 1997); in TestFieldGetSet()
837 ucal_set(cal, UCAL_YEAR, 1997); in TestFieldGetSet()
855 ucal_set(cal, UCAL_YEAR, 1997); in TestFieldGetSet()
860 ucal_set(cal, UCAL_YEAR, 1999); in TestFieldGetSet()
[all …]
/external/icu/icu4c/source/test/intltest/
Dcaltest.cpp340 FIELD_NAME_STR( UCAL_YEAR ); in fieldName()
500 case UCAL_YEAR: case UCAL_MONTH: case UCAL_DATE: in TestGenericAPI()
676 if (gc->get(UCAL_YEAR, status) != year || in TestRog()
787 c->set(UCAL_YEAR, 1997); in TestDisambiguation765()
792 c->set(UCAL_YEAR, 1997); in TestDisambiguation765()
798 c->set(UCAL_YEAR, 1997); in TestDisambiguation765()
806 c->set(UCAL_YEAR, 1997); in TestDisambiguation765()
814 c->set(UCAL_YEAR, 1997); in TestDisambiguation765()
820 c->set(UCAL_YEAR, 1997); in TestDisambiguation765()
828 c->set(UCAL_YEAR, 1997); in TestDisambiguation765()
[all …]
Dcalregts.cpp142 cal->set(UCAL_YEAR, 1997); in test4100311()
241 logln(UnicodeString("/") + cal->get(UCAL_YEAR, status)) ; in printdate()
660 foo1->get(UCAL_YEAR, status), in test4073929()
669 foo1->get(UCAL_YEAR, status), in test4073929()
678 foo1->get(UCAL_YEAR, status), in test4073929()
687 int32_t testyear = foo1->get(UCAL_YEAR, status); in test4073929()
888 cal2->set(cal1->get(UCAL_YEAR,status), in test4096231()
901 cal3->set(cal1->get(UCAL_YEAR,status), in test4096231()
941 gc->get(UCAL_DATE,status)+"/"+gc->get(UCAL_YEAR,status)+ in test4096539()
946 gc->get(UCAL_DATE,status)+"/"+gc->get(UCAL_YEAR,status) in test4096539()
[all …]
Dincaltst.cpp198 int y = cal.get(UCAL_YEAR, status); in quasiGregorianTest()
205 cal.get(UCAL_YEAR, status) + "/" + in quasiGregorianTest()
209 cal.get(UCAL_YEAR, status) + "/" + in quasiGregorianTest()
649 int32_t gotYear = cal2->get(UCAL_YEAR, s2); in TestJapanese3860()
689 int32_t gotYear = cal2->get(UCAL_YEAR, s2); in TestJapanese3860()
815 int32_t computedYear = cal->get(UCAL_YEAR, status); in TestPersian()
Dtzbdtest.cpp213 gc->get(UCAL_YEAR, status), gc->get(UCAL_MONTH, status), in verifyDST()
250 if (cal.get(UCAL_YEAR, status) == year && in verifyMapping()
255 cal.get(UCAL_YEAR, status) + "/" + in verifyMapping()
261 cal.get(UCAL_YEAR, status) + "/" + in verifyMapping()
Dastrotst.cpp271 cal->set(UCAL_YEAR, 2001); in TestSunriseTimes()
384 cal3->set(UCAL_YEAR, 1980); in TestBasics()
393 cal3->set(UCAL_YEAR, 1980); in TestBasics()
Dcalcasts.cpp62 checkField(cal, UCAL_YEAR, cases[i].year,status); in doTestCases()
74 cal->set(UCAL_YEAR, cases[i].year); in doTestCases()
Dcaltztst.cpp225 y = cal->get(UCAL_YEAR, status) - 1900; in dateToFields()
Ddtfmtrtts.cpp422 && getField(d[0], UCAL_YEAR) in test()
423 != getField(d[dmatch], UCAL_YEAR) in test()
/external/icu/icu4c/source/samples/datecal/
Dccal.c26 ucal_set(cal, UCAL_YEAR, 2000); in c_main()
38 ucal_get(cal, UCAL_YEAR, &status), in c_main()
Dcal.cpp36 gc->get(UCAL_YEAR, status), in cpp_main()

12