Home
last modified time | relevance | path

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

/external/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/
DEraRules.java53 int eraIdx = -1; in getInstance() local
55 eraIdx = Integer.parseInt(eraIdxStr); in getInstance()
59 if (eraIdx < 0 || eraIdx >= numEras) { in getInstance()
63 if (isSet(startDates[eraIdx])) { in getInstance()
81 startDates[eraIdx] = encodeDate(fields[0], fields[1], fields[2]); in getInstance()
91 if (isSet(startDates[eraIdx])) { in getInstance()
98 if (eraIdx != 0) { in getInstance()
105 startDates[eraIdx] = MIN_ENCODED_START; in getInstance()
113 if (eraIdx >= firstTentativeIdx) { in getInstance()
115 … "Non-tentative era(" + eraIdx + ") must be placed before the first tentative era"); in getInstance()
[all …]
/external/icu/android_icu4j/src/main/java/android/icu/impl/
DEraRules.java55 int eraIdx = -1; in getInstance() local
57 eraIdx = Integer.parseInt(eraIdxStr); in getInstance()
61 if (eraIdx < 0 || eraIdx >= numEras) { in getInstance()
65 if (isSet(startDates[eraIdx])) { in getInstance()
83 startDates[eraIdx] = encodeDate(fields[0], fields[1], fields[2]); in getInstance()
93 if (isSet(startDates[eraIdx])) { in getInstance()
100 if (eraIdx != 0) { in getInstance()
107 startDates[eraIdx] = MIN_ENCODED_START; in getInstance()
115 if (eraIdx >= firstTentativeIdx) { in getInstance()
117 … "Non-tentative era(" + eraIdx + ") must be placed before the first tentative era"); in getInstance()
[all …]
/external/icu/icu4c/source/i18n/
Derarules.cpp144 int32_t eraIdx = (int32_t)strtol(eraIdxStr, &endp, 10); in createInstance() local
149 if (eraIdx < 0 || eraIdx >= numEras) { in createInstance()
153 if (isSet(startDates[eraIdx])) { in createInstance()
177 startDates[eraIdx] = encodeDate(fields[0], fields[1], fields[2]); in createInstance()
188 if (isSet(startDates[eraIdx])) { in createInstance()
195 if (eraIdx != 0) { in createInstance()
201 U_ASSERT(eraIdx == 0); in createInstance()
202 startDates[eraIdx] = MIN_ENCODED_START; in createInstance()
210 if (eraIdx >= firstTentativeIdx) { in createInstance()
215 if (eraIdx < firstTentativeIdx) { in createInstance()
[all …]
Derarules.h55 void getStartDate(int32_t eraIdx, int32_t (&fields)[3], UErrorCode& status) const;
64 int32_t getStartYear(int32_t eraIdx, UErrorCode& status) const;
Djapancal.cpp222 …int32_t eraIdx = gJapaneseEraRules->getEraIndex(year, internalGet(UCAL_MONTH) + 1, internalGet(UCA… in handleComputeFields() local
224 internalSet(UCAL_ERA, eraIdx); in handleComputeFields()
225 internalSet(UCAL_YEAR, year - gJapaneseEraRules->getStartYear(eraIdx, status) + 1); in handleComputeFields()
/external/icu/libicu/cts_headers/
Derarules.h55 void getStartDate(int32_t eraIdx, int32_t (&fields)[3], UErrorCode& status) const;
64 int32_t getStartYear(int32_t eraIdx, UErrorCode& status) const;
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/util/
DJapaneseCalendar.java349 …int eraIdx = ERA_RULES.getEraIndex(year, internalGet(MONTH) + 1 /* 1-base */, internalGet(DAY_OF_M… in handleComputeFields() local
351 internalSet(ERA, eraIdx); in handleComputeFields()
352 internalSet(YEAR, year - ERA_RULES.getStartYear(eraIdx) + 1); in handleComputeFields()
/external/icu/android_icu4j/src/main/java/android/icu/util/
DJapaneseCalendar.java335 …int eraIdx = ERA_RULES.getEraIndex(year, internalGet(MONTH) + 1 /* 1-base */, internalGet(DAY_OF_M… in handleComputeFields() local
337 internalSet(ERA, eraIdx); in handleComputeFields()
338 internalSet(YEAR, year - ERA_RULES.getStartYear(eraIdx) + 1); in handleComputeFields()