Home
last modified time | relevance | path

Searched refs:calType (Results 1 – 14 of 14) sorted by relevance

/external/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/
DCalendarUtil.java40 String calType = null; in getCalendarType() local
42 calType = loc.getKeywordValue(CALKEY); in getCalendarType()
43 if (calType != null) { in getCalendarType()
44 return calType; in getCalendarType()
50 calType = CALTYPE_CACHE.get(baseLoc); in getCalendarType()
51 if (calType != null) { in getCalendarType()
52 return calType; in getCalendarType()
57 calType = canonical.getKeywordValue("calendar"); in getCalendarType()
59 if (calType == null) { in getCalendarType()
84 calType = order.getString(0); in getCalendarType()
[all …]
/external/icu/icu4c/source/test/intltest/
Dcallimts.cpp196 const char* calType = cal.getType(); in doTheoreticalLimitsTest() local
218 errln((UnicodeString)"FAIL: [" + calType + "] Maximum value of DAY_OF_YEAR is too big: " in doTheoreticalLimitsTest()
223 … errln((UnicodeString)"FAIL: [" + calType + "] Least maximum value of DAY_OF_YEAR is too small: " in doTheoreticalLimitsTest()
231 errln((UnicodeString)"FAIL: [" + calType + "] Maximum value of WEEK_OF_YEAR is too big: " in doTheoreticalLimitsTest()
236 … errln((UnicodeString)"FAIL: [" + calType + "] Least maximum value of WEEK_OF_YEAR is too small: " in doTheoreticalLimitsTest()
243 …errln((UnicodeString)"FAIL: [" + calType + "] Maximum value of DAY_OF_WEEK_IN_MONTH is incorrect: " in doTheoreticalLimitsTest()
248 …errln((UnicodeString)"FAIL: [" + calType + "] Least maximum value of DAY_OF_WEEK_IN_MONTH is incor… in doTheoreticalLimitsTest()
255 errln((UnicodeString)"FAIL: [" + calType + "] Maximum value of WEEK_OF_MONTH is incorrect: " in doTheoreticalLimitsTest()
260 … errln((UnicodeString)"FAIL: [" + calType + "] Least maximum value of WEEK_OF_MONTH is incorrect: " in doTheoreticalLimitsTest()
Dwindttst.cpp114 int32_t calType = 0; in testLocales() local
123 …lcidRecords[i].lcid, LOCALE_RETURN_NUMBER|LOCALE_ICALENDARTYPE, (LPWSTR) calType, sizeof(int32_t)); in testLocales()
128 uprv_strcat(localeID, getCalendarType(calType)); in testLocales()
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/util/
DCalendar.java1619 String calType = locale.getKeywordValue("calendar"); in setCalendarLocale() local
1620 if (calType != null) { in setCalendarLocale()
1621 buf.append("@calendar=").append(calType); in setCalendarLocale()
1824 CalType calType = getCalendarTypeForLocale(locale); in createInstance() local
1825 if (calType == CalType.UNKNOWN) { in createInstance()
1827 calType = CalType.GREGORIAN; in createInstance()
1830 switch (calType) { in createInstance()
2918 String calType = getType(); in roll() local
2919 … if (calType.equals("gregorian") || calType.equals("roc") || calType.equals("coptic")) { in roll()
3258 String calType = getType(); in add() local
[all …]
/external/icu/icu4j/main/tests/collate/src/com/ibm/icu/dev/test/format/
DGlobalizationPreferencesTest.java615 String calType = cal.getType(); in TestCalendar() local
616 if (!calType.equals("gregorian")) { in TestCalendar()
617 errln("FAIL: Calendar type is " + calType + " Expected: gregorian"); in TestCalendar()
639 calType = cal.getType(); in TestCalendar()
640 if (!calType.equals("japanese")) { in TestCalendar()
641 errln("FAIL: Calendar type is " + calType + " Expected: japanese"); in TestCalendar()
673 calType = cal.getType(); in TestCalendar()
674 if (!calType.equals("japanese")) { in TestCalendar()
675 errln("FAIL: Calendar type afte clone is " + calType + " Expected: japanese"); in TestCalendar()
681 calType = cal.getType(); in TestCalendar()
[all …]
/external/icu/icu4c/source/i18n/
Dcalendar.cpp238 ECalType calType = getCalendarType(keyword); in isStandardSupportedKeyword() local
239 return (calType != CALTYPE_UNKNOWN); in isStandardSupportedKeyword()
258 ECalType calType = CALTYPE_UNKNOWN; in getCalendarTypeForLocale() local
277 calType = getCalendarType(calTypeBuf); in getCalendarTypeForLocale()
278 if (calType != CALTYPE_UNKNOWN) { in getCalendarTypeForLocale()
279 return calType; in getCalendarTypeForLocale()
316 calType = getCalendarType(calTypeBuf); in getCalendarTypeForLocale()
323 if (calType == CALTYPE_UNKNOWN) { in getCalendarTypeForLocale()
325 calType = CALTYPE_GREGORIAN; in getCalendarTypeForLocale()
327 return calType; in getCalendarTypeForLocale()
[all …]
/external/icu/icu4j/main/tests/localespi/src/com/ibm/icu/dev/test/localespi/
DDateFormatTest.java206 String calType = uloc.getKeywordValue("calendar"); in TestCalendarKeyword() local
207 if (calType == null) { in TestCalendarKeyword()
DDateFormatSymbolsTest.java191 String calType = uloc.getKeywordValue("calendar"); in TestCalendarKeyword() local
192 if (calType == null) { in TestCalendarKeyword()
/external/icu/icu4c/source/test/cintltst/
Dccaltst.c77 UCalendarType calType; member
462 … caldef = ucal_open(NULL, 0, ucalGetTypeTestPtr->locale, ucalGetTypeTestPtr->calType, &status); in TestCalendar()
464 const char * calType = ucal_getType(caldef, &status); in TestCalendar() local
465 if ( U_SUCCESS(status) && calType != NULL ) { in TestCalendar()
466 if ( uprv_strcmp( calType, ucalGetTypeTestPtr->expectedResult ) != 0 ) { in TestCalendar()
468 … ucalGetTypeTestPtr->calType, ucalGetTypeTestPtr->expectedResult); in TestCalendar()
471 …L: ucal_open %s type %d, then ucal_getType fails\n", localeToDisplay, ucalGetTypeTestPtr->calType); in TestCalendar()
475 … log_err("FAIL: ucal_open %s type %d fails\n", localeToDisplay, ucalGetTypeTestPtr->calType); in TestCalendar()
2141 const char * calType = ucal_getType(ucalTest, &status); in TestAddRollEra0AndEraBounds() local
2148 … } else if ( uprv_strcmp(calType,"chinese")!=0 && (eraAfter != 0 || yrAfter != -1) ) { in TestAddRollEra0AndEraBounds()
[all …]
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/text/
DDateFormatSymbols.java1914 String calType = null; in DateFormatSymbols() local
1917 calType = calClassInfo[1]; in DateFormatSymbols()
1921 if (calType == null) { in DateFormatSymbols()
1922 calType = className.replaceAll("Calendar", "").toLowerCase(Locale.ENGLISH); in DateFormatSymbols()
1925 initializeData(locale, calType); in DateFormatSymbols()
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/calendar/
DIBMCalendarTest.java1521 String calType = ucalTest.getType(); in TestAddRollEra0AndEraBounds() local
1522 …boolean era0YearsGoBackwards = (calType.equals("gregorian") || calType.equals("roc") || calType.eq… in TestAddRollEra0AndEraBounds()
1562 if ( !calType.equals("chinese") && (eraAfter != 0 || yrAfter != -1) ) { in TestAddRollEra0AndEraBounds()
1571 if (eraMin != 0 && calType.compareTo("chinese") != 0) { in TestAddRollEra0AndEraBounds()
1572 … errln("Fail: getMinimum returns minimum era " + eraMin + " (should be 0) for calType " + calType); in TestAddRollEra0AndEraBounds()
DCalendarRegression.java2096 String calType = cal.getType();
2098 if ( !calType.equals("gregorian")) {
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/format/
DDateFormatRegressionTest.java1194 String calType = fmt.getCalendar().getType(); in TestDangiFormat() local
1195 assertEquals("Incorrect calendar type used by the date format instance", "dangi", calType); in TestDangiFormat()
/external/eclipse-basebuilder/basebuilder-3.6.2/org.eclipse.releng.basebuilder/plugins/
Dcom.ibm.icu_4.2.1.v20100412.jarMETA-INF/MANIFEST.MF META-INF/ECLIPSEF.SF META-INF/ECLIPSEF ...