Home
last modified time | relevance | path

Searched refs:EraRules (Results 1 – 11 of 11) sorted by relevance

/external/icu/icu4c/source/i18n/
Derarules.cpp105 EraRules::EraRules(LocalMemory<int32_t>& eraStartDates, int32_t numEras) in EraRules() function in EraRules
111 EraRules::~EraRules() { in ~EraRules()
114 EraRules* EraRules::createInstance(const char *calType, UBool includeTentativeEra, UErrorCode& stat… in createInstance()
221 EraRules *result; in createInstance()
223 result = new EraRules(startDates, firstTentativeIdx); in createInstance()
225 result = new EraRules(startDates, numEras); in createInstance()
234 void EraRules::getStartDate(int32_t eraIdx, int32_t (&fields)[3], UErrorCode& status) const { in getStartDate()
245 int32_t EraRules::getStartYear(int32_t eraIdx, UErrorCode& status) const { in getStartYear()
261 int32_t EraRules::getEraIndex(int32_t year, int32_t month, int32_t day, UErrorCode& status) const { in getEraIndex()
293 void EraRules::initCurrentEra() { in initCurrentEra()
Derarules.h33 class U_I18N_API EraRules : public UMemory {
35 ~EraRules();
37 …static EraRules* createInstance(const char *calType, UBool includeTentativeEra, UErrorCode& status…
88 EraRules(LocalMemory<int32_t>& eraStartDates, int32_t numEra);
Djapancal.cpp41 static icu::EraRules * gJapaneseEraRules = nullptr;
97 …gJapaneseEraRules = EraRules::createInstance("japanese", JapaneseCalendar::enableTentativeEra(), s… in initializeEras()
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/calendar/
DEraRulesTest.java12 import android.icu.impl.EraRules;
32 EraRules rules1 = EraRules.getInstance(calType, false); in testAPIs()
37 EraRules rules2 = EraRules.getInstance(calType, true); in testAPIs()
69 EraRules rules = EraRules.getInstance(CalType.JAPANESE, true); in testJapanese()
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/calendar/
DEraRulesTest.java11 import com.ibm.icu.impl.EraRules;
29 EraRules rules1 = EraRules.getInstance(calType, false); in testAPIs()
34 EraRules rules2 = EraRules.getInstance(calType, true); in testAPIs()
66 EraRules rules = EraRules.getInstance(CalType.JAPANESE, true); in testJapanese()
/external/icu/icu4c/source/test/intltest/
Derarulestest.cpp54 LocalPointer<EraRules> rules1(EraRules::createInstance(calId, FALSE, status)); in testAPIs()
60 LocalPointer<EraRules> rules2(EraRules::createInstance(calId, TRUE, status)); in testAPIs()
110 LocalPointer<EraRules> rules(EraRules::createInstance("japanese", TRUE, status)); in testJapanese()
/external/icu/libicu/cts_headers/
Derarules.h33 class U_I18N_API EraRules : public UMemory {
35 ~EraRules();
37 …static EraRules* createInstance(const char *calType, UBool includeTentativeEra, UErrorCode& status…
88 EraRules(LocalMemory<int32_t>& eraStartDates, int32_t numEra);
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/
DEraRules.java18 public class EraRules { class
32 private EraRules(int[] startDates, int numEras) { in EraRules() method in EraRules
38 public static EraRules getInstance(CalType calType, boolean includeTentativeEra) { in getInstance()
125 return new EraRules(startDates, firstTentativeIdx); in getInstance()
128 return new EraRules(startDates, numEras); in getInstance()
/external/icu/android_icu4j/src/main/java/android/icu/impl/
DEraRules.java20 public class EraRules { class
34 private EraRules(int[] startDates, int numEras) { in EraRules() method in EraRules
40 public static EraRules getInstance(CalType calType, boolean includeTentativeEra) { in getInstance()
127 return new EraRules(startDates, firstTentativeIdx); in getInstance()
130 return new EraRules(startDates, numEras); in getInstance()
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/util/
DJapaneseCalendar.java14 import com.ibm.icu.impl.EraRules;
231 private static final EraRules ERA_RULES;
234 ERA_RULES = EraRules.getInstance(CalType.JAPANESE, enableTentativeEra());
/external/icu/android_icu4j/src/main/java/android/icu/util/
DJapaneseCalendar.java15 import android.icu.impl.EraRules;
221 private static final EraRules ERA_RULES;
224 ERA_RULES = EraRules.getInstance(CalType.JAPANESE, enableTentativeEra());