Home
last modified time | relevance | path

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

/external/icu/android_icu4j/src/main/java/android/icu/impl/
DCalendarUtil.java44 String calType = loc.getKeywordValue(CALKEY); in getCalendarType() local
45 if (calType != null) { in getCalendarType()
48 return calType.toLowerCase(Locale.ROOT); in getCalendarType()
53 calType = canonical.getKeywordValue(CALKEY); in getCalendarType()
54 if (calType != null) { in getCalendarType()
55 return calType; in getCalendarType()
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/
DCalendarUtil.java42 String calType = loc.getKeywordValue(CALKEY); in getCalendarType() local
43 if (calType != null) { in getCalendarType()
46 return calType.toLowerCase(Locale.ROOT); in getCalendarType()
51 calType = canonical.getKeywordValue(CALKEY); in getCalendarType()
52 if (calType != null) { in getCalendarType()
53 return calType; in getCalendarType()
/external/icu/icu4c/source/test/intltest/
Dcallimts.cpp232 const char* calType = cal.getType(); in doTheoreticalLimitsTest() local
254 errln((UnicodeString)"FAIL: [" + calType + "] Maximum value of DAY_OF_YEAR is too big: " in doTheoreticalLimitsTest()
259 … errln((UnicodeString)"FAIL: [" + calType + "] Least maximum value of DAY_OF_YEAR is too small: " in doTheoreticalLimitsTest()
267 errln((UnicodeString)"FAIL: [" + calType + "] Maximum value of WEEK_OF_YEAR is too big: " in doTheoreticalLimitsTest()
272 … errln((UnicodeString)"FAIL: [" + calType + "] Least maximum value of WEEK_OF_YEAR is too small: " in doTheoreticalLimitsTest()
279 …errln((UnicodeString)"FAIL: [" + calType + "] Maximum value of DAY_OF_WEEK_IN_MONTH is incorrect: " in doTheoreticalLimitsTest()
284 …errln((UnicodeString)"FAIL: [" + calType + "] Least maximum value of DAY_OF_WEEK_IN_MONTH is incor… in doTheoreticalLimitsTest()
291 errln((UnicodeString)"FAIL: [" + calType + "] Maximum value of WEEK_OF_MONTH is incorrect: " in doTheoreticalLimitsTest()
296 … errln((UnicodeString)"FAIL: [" + calType + "] Least maximum value of WEEK_OF_MONTH is incorrect: " in doTheoreticalLimitsTest()
Dwindttst.cpp118 int32_t calType = 0; in testLocales() local
142 …lcidRecords[i].lcid, LOCALE_RETURN_NUMBER|LOCALE_ICALENDARTYPE, (LPWSTR) calType, sizeof(int32_t)); in testLocales()
147 uprv_strcat(localeID, getCalendarType(calType)); in testLocales()
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/util/
DCalendar.java1628 String calType = locale.getKeywordValue("calendar"); in setCalendarLocale() local
1629 if (calType != null) { in setCalendarLocale()
1630 buf.append("@calendar=").append(calType); in setCalendarLocale()
1829 CalType calType = getCalendarTypeForLocale(locale); in createInstance() local
1830 if (calType == CalType.UNKNOWN) { in createInstance()
1832 calType = CalType.GREGORIAN; in createInstance()
1835 switch (calType) { in createInstance()
2921 String calType = getType(); in roll() local
2922 … if (calType.equals("gregorian") || calType.equals("roc") || calType.equals("coptic")) { in roll()
3261 String calType = getType(); in add() local
[all …]
/external/icu/android_icu4j/src/main/java/android/icu/util/
DCalendar.java1563 String calType = locale.getKeywordValue("calendar"); in setCalendarLocale() local
1564 if (calType != null) { in setCalendarLocale()
1565 buf.append("@calendar=").append(calType); in setCalendarLocale()
1758 CalType calType = getCalendarTypeForLocale(locale); in createInstance() local
1759 if (calType == CalType.UNKNOWN) { in createInstance()
1761 calType = CalType.GREGORIAN; in createInstance()
1764 switch (calType) { in createInstance()
2824 String calType = getType(); in roll() local
2825 … if (calType.equals("gregorian") || calType.equals("roc") || calType.equals("coptic")) { in roll()
3163 String calType = getType(); in add() local
[all …]
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/format/
DGlobalizationPreferencesTest.java625 String calType = cal.getType(); in TestCalendar() local
626 if (!calType.equals("gregorian")) { in TestCalendar()
627 errln("FAIL: Calendar type is " + calType + " Expected: gregorian"); in TestCalendar()
649 calType = cal.getType(); in TestCalendar()
650 if (!calType.equals("japanese")) { in TestCalendar()
651 errln("FAIL: Calendar type is " + calType + " Expected: japanese"); in TestCalendar()
683 calType = cal.getType(); in TestCalendar()
684 if (!calType.equals("japanese")) { in TestCalendar()
685 errln("FAIL: Calendar type afte clone is " + calType + " Expected: japanese"); in TestCalendar()
691 calType = cal.getType(); in TestCalendar()
[all …]
DDateFormatRegressionTest.java1236 String calType = fmt.getCalendar().getType(); in TestDangiFormat() local
1237 assertEquals("Incorrect calendar type used by the date format instance", "dangi", calType); in TestDangiFormat()
/external/icu/icu4j/main/tests/collate/src/com/ibm/icu/dev/test/format/
DGlobalizationPreferencesTest.java622 String calType = cal.getType(); in TestCalendar() local
623 if (!calType.equals("gregorian")) { in TestCalendar()
624 errln("FAIL: Calendar type is " + calType + " Expected: gregorian"); in TestCalendar()
646 calType = cal.getType(); in TestCalendar()
647 if (!calType.equals("japanese")) { in TestCalendar()
648 errln("FAIL: Calendar type is " + calType + " Expected: japanese"); in TestCalendar()
680 calType = cal.getType(); in TestCalendar()
681 if (!calType.equals("japanese")) { in TestCalendar()
682 errln("FAIL: Calendar type afte clone is " + calType + " Expected: japanese"); in TestCalendar()
688 calType = cal.getType(); in TestCalendar()
[all …]
/external/icu/icu4c/source/i18n/
Dcalendar.cpp242 ECalType calType = getCalendarType(keyword); in isStandardSupportedKeyword() local
243 return (calType != CALTYPE_UNKNOWN); in isStandardSupportedKeyword()
264 ECalType calType = CALTYPE_UNKNOWN; in getCalendarTypeForLocale() local
283 calType = getCalendarType(calTypeBuf); in getCalendarTypeForLocale()
284 if (calType != CALTYPE_UNKNOWN) { in getCalendarTypeForLocale()
285 return calType; in getCalendarTypeForLocale()
315 calType = getCalendarType(calTypeBuf); in getCalendarTypeForLocale()
322 if (calType == CALTYPE_UNKNOWN) { in getCalendarTypeForLocale()
324 calType = CALTYPE_GREGORIAN; in getCalendarTypeForLocale()
326 return calType; in getCalendarTypeForLocale()
[all …]
Ddtitvinf.cpp458 const char *calType = calTypeBuffer.data(); in initializeData() local
464 ures_getAllItemsWithFallback(calBundle, calType, sink, status); in initializeData()
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/text/
DRelativeDateTimeFormatter.java1212 String calType = r.getStringWithFallback("calendar/default"); in getDateTimePattern() local
1213 if (calType == null || calType.equals("")) { in getDateTimePattern()
1214 calType = "gregorian"; in getDateTimePattern()
1216 String resourcePath = "calendar/" + calType + "/DateTimePatterns"; in getDateTimePattern()
1218 if (patternsRb == null && calType.equals("gregorian")) { in getDateTimePattern()
DDateFormatSymbols.java2207 String calType = null; in DateFormatSymbols() local
2210 calType = calClassInfo[1]; in DateFormatSymbols()
2214 if (calType == null) { in DateFormatSymbols()
2215 calType = className.replaceAll("Calendar", "").toLowerCase(Locale.ENGLISH); in DateFormatSymbols()
2218 initializeData(locale, calType); in DateFormatSymbols()
2230 public DateFormatSymbols(ULocale locale, String calType) { in DateFormatSymbols() argument
2231 initializeData(locale, calType); in DateFormatSymbols()
/external/icu/android_icu4j/src/main/java/android/icu/text/
DRelativeDateTimeFormatter.java1149 String calType = r.getStringWithFallback("calendar/default"); in getDateTimePattern() local
1150 if (calType == null || calType.equals("")) { in getDateTimePattern()
1151 calType = "gregorian"; in getDateTimePattern()
1153 String resourcePath = "calendar/" + calType + "/DateTimePatterns"; in getDateTimePattern()
1155 if (patternsRb == null && calType.equals("gregorian")) { in getDateTimePattern()
DDateFormatSymbols.java2162 String calType = null; in DateFormatSymbols() local
2165 calType = calClassInfo[1]; in DateFormatSymbols()
2169 if (calType == null) { in DateFormatSymbols()
2170 calType = className.replaceAll("Calendar", "").toLowerCase(Locale.ENGLISH); in DateFormatSymbols()
2173 initializeData(locale, calType); in DateFormatSymbols()
2185 public DateFormatSymbols(ULocale locale, String calType) { in DateFormatSymbols() argument
2186 initializeData(locale, calType); in DateFormatSymbols()
/external/icu/icu4j/main/tests/localespi/src/com/ibm/icu/dev/test/localespi/
DDateFormatTest.java212 String calType = uloc.getKeywordValue("calendar"); in TestCalendarKeyword() local
213 if (calType == null) { in TestCalendarKeyword()
DDateFormatSymbolsTest.java199 String calType = uloc.getKeywordValue("calendar"); in TestCalendarKeyword() local
200 if (calType == null) { in TestCalendarKeyword()
/external/icu/icu4c/source/test/cintltst/
Dccaltst.c80 UCalendarType calType; member
470 … caldef = ucal_open(NULL, 0, ucalGetTypeTestPtr->locale, ucalGetTypeTestPtr->calType, &status); in TestCalendar()
472 const char * calType = ucal_getType(caldef, &status); in TestCalendar() local
473 if ( U_SUCCESS(status) && calType != NULL ) { in TestCalendar()
474 if ( uprv_strcmp( calType, ucalGetTypeTestPtr->expectedResult ) != 0 ) { in TestCalendar()
476 … ucalGetTypeTestPtr->calType, ucalGetTypeTestPtr->expectedResult); in TestCalendar()
479 …L: ucal_open %s type %d, then ucal_getType fails\n", localeToDisplay, ucalGetTypeTestPtr->calType); in TestCalendar()
483 … log_err("FAIL: ucal_open %s type %d fails\n", localeToDisplay, ucalGetTypeTestPtr->calType); in TestCalendar()
2149 const char * calType = ucal_getType(ucalTest, &status); in TestAddRollEra0AndEraBounds() local
2156 … } else if ( uprv_strcmp(calType,"chinese")!=0 && (eraAfter != 0 || yrAfter != -1) ) { in TestAddRollEra0AndEraBounds()
[all …]
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/calendar/
DIBMCalendarTest.java1617 String calType = ucalTest.getType(); in TestAddRollEra0AndEraBounds() local
1618 …boolean era0YearsGoBackwards = (calType.equals("gregorian") || calType.equals("roc") || calType.eq… in TestAddRollEra0AndEraBounds()
1658 if ( !calType.equals("chinese") && (eraAfter != 0 || yrAfter != -1) ) { in TestAddRollEra0AndEraBounds()
1667 if (eraMin != 0 && calType.compareTo("chinese") != 0) { in TestAddRollEra0AndEraBounds()
1668 … errln("Fail: getMinimum returns minimum era " + eraMin + " (should be 0) for calType " + calType); in TestAddRollEra0AndEraBounds()
DCalendarRegressionTest.java2155 String calType = cal.getType();
2157 if ( !calType.equals("gregorian")) {
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/calendar/
DIBMCalendarTest.java1614 String calType = ucalTest.getType(); in TestAddRollEra0AndEraBounds() local
1615 …boolean era0YearsGoBackwards = (calType.equals("gregorian") || calType.equals("roc") || calType.eq… in TestAddRollEra0AndEraBounds()
1655 if ( !calType.equals("chinese") && (eraAfter != 0 || yrAfter != -1) ) { in TestAddRollEra0AndEraBounds()
1664 if (eraMin != 0 && calType.compareTo("chinese") != 0) { in TestAddRollEra0AndEraBounds()
1665 … errln("Fail: getMinimum returns minimum era " + eraMin + " (should be 0) for calType " + calType); in TestAddRollEra0AndEraBounds()
DCalendarRegressionTest.java2152 String calType = cal.getType();
2154 if ( !calType.equals("gregorian")) {
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/format/
DDateFormatRegressionTest.java1233 String calType = fmt.getCalendar().getType(); in TestDangiFormat() local
1234 assertEquals("Incorrect calendar type used by the date format instance", "dangi", calType); in TestDangiFormat()