Home
last modified time | relevance | path

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

1234

/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.cpp268 if (newerField(UCAL_EXTENDED_YEAR, UCAL_YEAR) == UCAL_EXTENDED_YEAR) { in handleGetExtendedYear()
271 year = internalGet(UCAL_YEAR, 1); // Default to year 1 in handleGetExtendedYear()
329 internalSet(UCAL_YEAR, IndianYear); in handleComputeFields()
426 calendar.add(UCAL_YEAR, -80, status); in initializeSystemDefaultCentury()
429 int32_t newYear = calendar.get(UCAL_YEAR, status); in initializeSystemDefaultCentury()
/external/chromium_org/third_party/icu/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()
597 internalSet(UCAL_YEAR, year); in handleComputeFields()
613 if (newerField(UCAL_EXTENDED_YEAR, UCAL_YEAR) == UCAL_EXTENDED_YEAR) { in handleGetExtendedYear()
616 year = internalGet(UCAL_YEAR, 1); // Default to year 1 in handleGetExtendedYear()
694 calendar.add(UCAL_YEAR, -80, status); in initializeSystemDefaultCentury()
697 gSystemDefaultCenturyStartYear = calendar.get(UCAL_YEAR, status); in initializeSystemDefaultCentury()
Dindiancal.cpp268 if (newerField(UCAL_EXTENDED_YEAR, UCAL_YEAR) == UCAL_EXTENDED_YEAR) { in handleGetExtendedYear()
271 year = internalGet(UCAL_YEAR, 1); // Default to year 1 in handleGetExtendedYear()
329 internalSet(UCAL_YEAR, IndianYear); in handleComputeFields()
426 calendar.add(UCAL_YEAR, -80, status); in initializeSystemDefaultCentury()
429 int32_t newYear = calendar.get(UCAL_YEAR, status); in initializeSystemDefaultCentury()
/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/chromium_org/third_party/icu/source/test/cintltst/
Dccaltst.c779 if(ucal_get(cal, UCAL_YEAR, &status)!=1999 || ucal_get(cal, UCAL_MONTH, &status)!=2 || in TestFieldGetSet()
792 ucal_set(cal, UCAL_YEAR, 1997); in TestFieldGetSet()
797 ucal_set(cal, UCAL_YEAR, 1997); in TestFieldGetSet()
803 ucal_set(cal, UCAL_YEAR, 1997); in TestFieldGetSet()
811 ucal_set(cal, UCAL_YEAR, 1997); in TestFieldGetSet()
823 ucal_set(cal, UCAL_YEAR, 1997); in TestFieldGetSet()
829 ucal_set(cal, UCAL_YEAR, 1997); in TestFieldGetSet()
836 ucal_set(cal, UCAL_YEAR, 1997); in TestFieldGetSet()
854 ucal_set(cal, UCAL_YEAR, 1997); in TestFieldGetSet()
859 ucal_set(cal, UCAL_YEAR, 1999); in TestFieldGetSet()
[all …]
/external/chromium_org/third_party/icu/source/test/intltest/
Dcaltest.cpp311 FIELD_NAME_STR( UCAL_YEAR ); in fieldName()
471 case UCAL_YEAR: case UCAL_MONTH: case UCAL_DATE: in TestGenericAPI()
644 if (gc->get(UCAL_YEAR, status) != year || in TestRog()
755 c->set(UCAL_YEAR, 1997); in TestDisambiguation765()
760 c->set(UCAL_YEAR, 1997); in TestDisambiguation765()
766 c->set(UCAL_YEAR, 1997); in TestDisambiguation765()
774 c->set(UCAL_YEAR, 1997); in TestDisambiguation765()
782 c->set(UCAL_YEAR, 1997); in TestDisambiguation765()
788 c->set(UCAL_YEAR, 1997); in TestDisambiguation765()
796 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 …]
/external/icu/icu4c/source/test/intltest/
Dcaltest.cpp332 FIELD_NAME_STR( UCAL_YEAR ); in fieldName()
492 case UCAL_YEAR: case UCAL_MONTH: case UCAL_DATE: in TestGenericAPI()
665 if (gc->get(UCAL_YEAR, status) != year || in TestRog()
776 c->set(UCAL_YEAR, 1997); in TestDisambiguation765()
781 c->set(UCAL_YEAR, 1997); in TestDisambiguation765()
787 c->set(UCAL_YEAR, 1997); in TestDisambiguation765()
795 c->set(UCAL_YEAR, 1997); in TestDisambiguation765()
803 c->set(UCAL_YEAR, 1997); in TestDisambiguation765()
809 c->set(UCAL_YEAR, 1997); in TestDisambiguation765()
817 c->set(UCAL_YEAR, 1997); in TestDisambiguation765()
[all …]
/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()
/external/chromium_org/third_party/icu/source/samples/datecal/
Dccal.c26 ucal_set(cal, UCAL_YEAR, 2000); in c_main()
38 ucal_get(cal, UCAL_YEAR, &status), in c_main()

1234