Home
last modified time | relevance | path

Searched refs:eraIdx (Results 1 – 7 of 7) sorted by relevance

/external/icu/android_icu4j/src/main/java/android/icu/impl/
DEraRules.java54 int eraIdx = -1; in getInstance() local
56 eraIdx = Integer.parseInt(eraIdxStr); in getInstance()
60 if (eraIdx < 0 || eraIdx >= numEras) { in getInstance()
64 if (isSet(startDates[eraIdx])) { in getInstance()
82 startDates[eraIdx] = encodeDate(fields[0], fields[1], fields[2]); in getInstance()
92 if (isSet(startDates[eraIdx])) { in getInstance()
99 if (eraIdx != 0) { in getInstance()
106 startDates[eraIdx] = MIN_ENCODED_START; in getInstance()
114 if (eraIdx >= firstTentativeIdx) { in getInstance()
116 … "Non-tentative era(" + eraIdx + ") must be placed before the first tentative era"); in getInstance()
[all …]
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/
DEraRules.java52 int eraIdx = -1; in getInstance() local
54 eraIdx = Integer.parseInt(eraIdxStr); in getInstance()
58 if (eraIdx < 0 || eraIdx >= numEras) { in getInstance()
62 if (isSet(startDates[eraIdx])) { in getInstance()
80 startDates[eraIdx] = encodeDate(fields[0], fields[1], fields[2]); in getInstance()
90 if (isSet(startDates[eraIdx])) { in getInstance()
97 if (eraIdx != 0) { in getInstance()
104 startDates[eraIdx] = MIN_ENCODED_START; in getInstance()
112 if (eraIdx >= firstTentativeIdx) { in getInstance()
114 … "Non-tentative era(" + eraIdx + ") must be placed before the first tentative era"); in getInstance()
[all …]
/external/icu/icu4c/source/i18n/
Derarules.cpp141 int32_t eraIdx = (int32_t)strtol(eraIdxStr, &endp, 10); in createInstance() local
146 if (eraIdx < 0 || eraIdx >= numEras) { in createInstance()
150 if (isSet(startDates[eraIdx])) { in createInstance()
174 startDates[eraIdx] = encodeDate(fields[0], fields[1], fields[2]); in createInstance()
185 if (isSet(startDates[eraIdx])) { in createInstance()
192 if (eraIdx != 0) { in createInstance()
198 U_ASSERT(eraIdx == 0); in createInstance()
199 startDates[eraIdx] = MIN_ENCODED_START; in createInstance()
207 if (eraIdx >= firstTentativeIdx) { in createInstance()
212 if (eraIdx < firstTentativeIdx) { in createInstance()
[all …]
Derarules.h51 void getStartDate(int32_t eraIdx, int32_t (&fields)[3], UErrorCode& status) const;
60 int32_t getStartYear(int32_t eraIdx, UErrorCode& status) const;
Djapancal.cpp215 …int32_t eraIdx = gJapaneseEraRules->getEraIndex(year, internalGet(UCAL_MONTH) + 1, internalGet(UCA… in handleComputeFields() local
217 internalSet(UCAL_ERA, eraIdx); in handleComputeFields()
218 internalSet(UCAL_YEAR, year - gJapaneseEraRules->getStartYear(eraIdx, status) + 1); in handleComputeFields()
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/util/
DJapaneseCalendar.java340 …int eraIdx = ERA_RULES.getEraIndex(year, internalGet(MONTH) + 1 /* 1-base */, internalGet(DAY_OF_M… in handleComputeFields() local
342 internalSet(ERA, eraIdx); in handleComputeFields()
343 internalSet(YEAR, year - ERA_RULES.getStartYear(eraIdx) + 1); in handleComputeFields()
/external/icu/android_icu4j/src/main/java/android/icu/util/
DJapaneseCalendar.java326 …int eraIdx = ERA_RULES.getEraIndex(year, internalGet(MONTH) + 1 /* 1-base */, internalGet(DAY_OF_M… in handleComputeFields() local
328 internalSet(ERA, eraIdx); in handleComputeFields()
329 internalSet(YEAR, year - ERA_RULES.getStartYear(eraIdx) + 1); in handleComputeFields()