Home
last modified time | relevance | path

Searched refs:toCalendar (Results 1 – 24 of 24) sorted by relevance

/third_party/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/calendar/
DDataDrivenCalendarTest.java78 CalendarFieldsSet toSet, Calendar toCalendar, boolean forward) { in testConvert() argument
80 : "reverse")+" "+fromCalendar.getType()+"->"+toCalendar.getType()+" "; in testConvert()
112 toCalendar.clear(); in testConvert()
113 toCalendar.setTime(fromTime); in testConvert()
116 if (!toSet.matches(toCalendar, diffSet)) { in testConvert()
129 Calendar toCalendar= null; in testConvert() local
133 toCalendar = Calendar.getInstance(loc); in testConvert()
159 testConvert(caseString, fromSet, fromCalendar, toSet, toCalendar, forward); in testConvert()
163 testConvert(caseString, toSet, toCalendar, fromSet, fromCalendar, forward); in testConvert()
261 Calendar toCalendar = (Calendar)fromCalendar.clone(); in testOps() local
[all …]
/third_party/icu/ohos_icu4j/src/main/tests/ohos/global/icu/dev/test/calendar/
DDataDrivenCalendarTest.java81 CalendarFieldsSet toSet, Calendar toCalendar, boolean forward) { in testConvert() argument
83 : "reverse")+" "+fromCalendar.getType()+"->"+toCalendar.getType()+" "; in testConvert()
115 toCalendar.clear(); in testConvert()
116 toCalendar.setTime(fromTime); in testConvert()
119 if (!toSet.matches(toCalendar, diffSet)) { in testConvert()
132 Calendar toCalendar= null; in testConvert() local
136 toCalendar = Calendar.getInstance(loc); in testConvert()
162 testConvert(caseString, fromSet, fromCalendar, toSet, toCalendar, forward); in testConvert()
166 testConvert(caseString, toSet, toCalendar, fromSet, fromCalendar, forward); in testConvert()
264 Calendar toCalendar = (Calendar)fromCalendar.clone(); in testOps() local
[all …]
/third_party/icu/ohos_icu4j/src/main/java/ohos/global/icu/text/
DDateIntervalFormat.java800 Calendar toCalendar, in getPatterns() argument
804 if ( fromCalendar.get(Calendar.ERA) != toCalendar.get(Calendar.ERA) ) { in getPatterns()
807 toCalendar.get(Calendar.YEAR) ) { in getPatterns()
810 toCalendar.get(Calendar.MONTH) ) { in getPatterns()
813 toCalendar.get(Calendar.DATE) ) { in getPatterns()
816 toCalendar.get(Calendar.AM_PM) ) { in getPatterns()
819 toCalendar.get(Calendar.HOUR) ) { in getPatterns()
822 toCalendar.get(Calendar.MINUTE) ) { in getPatterns()
825 toCalendar.get(Calendar.SECOND) ) { in getPatterns()
828 toCalendar.get(Calendar.MILLISECOND) ) { in getPatterns()
[all …]
DSimpleDateFormat.java4237 Calendar toCalendar, in intervalFormatByAlgorithm() argument
4243 if ( !fromCalendar.isEquivalentTo(toCalendar) ) { in intervalFormatByAlgorithm()
4255 if ( diffCalFieldValue(fromCalendar, toCalendar, items, i) ) { in intervalFormatByAlgorithm()
4268 if ( diffCalFieldValue(fromCalendar, toCalendar, items, i) ) { in intervalFormatByAlgorithm()
4281 format(toCalendar, appendTo, pos); in intervalFormatByAlgorithm()
4333 format(toCalendar, appendTo, pos); in intervalFormatByAlgorithm()
4370 i, capSetting, pos, item.type, toCalendar); in intervalFormatByAlgorithm()
4373 i, capSetting, pos, item.type, toCalendar)); in intervalFormatByAlgorithm()
4397 Calendar toCalendar, in diffCalFieldValue() argument
4415 int value_2 = toCalendar.get(field); in diffCalFieldValue()
/third_party/icu/icu4c/source/test/intltest/
Ddadrcal.cpp101 Calendar *toCalendar= NULL; in testOps() local
237 toCalendar = fromCalendar->clone(); in testOps()
243 toCalendar->roll((UCalendarDateFields)q, in testOps()
246 toCalendar->add((UCalendarDateFields)q, in testOps()
265 if(!(toCalendar->getTime(status)==toDate) || U_FAILURE(status)){ in testOps()
272 } else if (!toSet.matches(toCalendar, diffSet, status)) { in testOps()
285 delete toCalendar; in testOps()
291 const CalendarFieldsSet &toSet, Calendar *toCalendar, UBool forward) { in testConvert() argument
294 : "reverse")+" "+fromCalendar->getType()+"->"+toCalendar->getType(); in testConvert()
342 toCalendar->clear(); in testConvert()
[all …]
/third_party/icu/icu4j/main/classes/core/src/com/ibm/icu/text/
DDateIntervalFormat.java827 Calendar toCalendar, in getPatterns() argument
831 if ( fromCalendar.get(Calendar.ERA) != toCalendar.get(Calendar.ERA) ) { in getPatterns()
834 toCalendar.get(Calendar.YEAR) ) { in getPatterns()
837 toCalendar.get(Calendar.MONTH) ) { in getPatterns()
840 toCalendar.get(Calendar.DATE) ) { in getPatterns()
843 toCalendar.get(Calendar.AM_PM) ) { in getPatterns()
846 toCalendar.get(Calendar.HOUR) ) { in getPatterns()
849 toCalendar.get(Calendar.MINUTE) ) { in getPatterns()
852 toCalendar.get(Calendar.SECOND) ) { in getPatterns()
855 toCalendar.get(Calendar.MILLISECOND) ) { in getPatterns()
[all …]
DSimpleDateFormat.java4273 Calendar toCalendar, in intervalFormatByAlgorithm() argument
4279 if ( !fromCalendar.isEquivalentTo(toCalendar) ) { in intervalFormatByAlgorithm()
4291 if ( diffCalFieldValue(fromCalendar, toCalendar, items, i) ) { in intervalFormatByAlgorithm()
4304 if ( diffCalFieldValue(fromCalendar, toCalendar, items, i) ) { in intervalFormatByAlgorithm()
4317 format(toCalendar, appendTo, pos); in intervalFormatByAlgorithm()
4369 format(toCalendar, appendTo, pos); in intervalFormatByAlgorithm()
4406 i, capSetting, pos, item.type, toCalendar); in intervalFormatByAlgorithm()
4409 i, capSetting, pos, item.type, toCalendar)); in intervalFormatByAlgorithm()
4433 Calendar toCalendar, in diffCalFieldValue() argument
4451 int value_2 = toCalendar.get(field); in diffCalFieldValue()
/third_party/icu/icu4c/source/i18n/
Ddtitvfmt.cpp349 Calendar& toCalendar, in format() argument
358 return formatImpl(fromCalendar, toCalendar, appendTo, ignore, handler, status); in format()
364 Calendar& toCalendar, in formatToValue() argument
380 formatImpl(fromCalendar, toCalendar, string, firstIndex, handler, status); in formatToValue()
420 Calendar& toCalendar, in formatImpl() argument
434 if ( !fromCalendar.isEquivalentTo(toCalendar) ) { in formatImpl()
442 if ( fromCalendar.get(UCAL_ERA,status) != toCalendar.get(UCAL_ERA,status)) { in formatImpl()
445 toCalendar.get(UCAL_YEAR, status) ) { in formatImpl()
448 toCalendar.get(UCAL_MONTH, status) ) { in formatImpl()
451 toCalendar.get(UCAL_DATE, status) ) { in formatImpl()
[all …]
Dudateintervalformat.cpp142 UCalendar* toCalendar, in udtitvfmt_formatCalendarToResult() argument
151 ->formatToValue(*(Calendar *)fromCalendar, *(Calendar *)toCalendar, *status); in udtitvfmt_formatCalendarToResult()
/third_party/node/deps/icu-small/source/i18n/
Ddtitvfmt.cpp349 Calendar& toCalendar, in format() argument
358 return formatImpl(fromCalendar, toCalendar, appendTo, ignore, handler, status); in format()
364 Calendar& toCalendar, in formatToValue() argument
380 formatImpl(fromCalendar, toCalendar, string, firstIndex, handler, status); in formatToValue()
420 Calendar& toCalendar, in formatImpl() argument
434 if ( !fromCalendar.isEquivalentTo(toCalendar) ) { in formatImpl()
442 if ( fromCalendar.get(UCAL_ERA,status) != toCalendar.get(UCAL_ERA,status)) { in formatImpl()
445 toCalendar.get(UCAL_YEAR, status) ) { in formatImpl()
448 toCalendar.get(UCAL_MONTH, status) ) { in formatImpl()
451 toCalendar.get(UCAL_DATE, status) ) { in formatImpl()
[all …]
Dudateintervalformat.cpp142 UCalendar* toCalendar, in udtitvfmt_formatCalendarToResult() argument
151 ->formatToValue(*(Calendar *)fromCalendar, *(Calendar *)toCalendar, *status); in udtitvfmt_formatCalendarToResult()
/third_party/skia/third_party/externals/icu/source/i18n/
Ddtitvfmt.cpp349 Calendar& toCalendar, in format() argument
358 return formatImpl(fromCalendar, toCalendar, appendTo, ignore, handler, status); in format()
364 Calendar& toCalendar, in formatToValue() argument
380 formatImpl(fromCalendar, toCalendar, string, firstIndex, handler, status); in formatToValue()
420 Calendar& toCalendar, in formatImpl() argument
434 if ( !fromCalendar.isEquivalentTo(toCalendar) ) { in formatImpl()
442 if ( fromCalendar.get(UCAL_ERA,status) != toCalendar.get(UCAL_ERA,status)) { in formatImpl()
445 toCalendar.get(UCAL_YEAR, status) ) { in formatImpl()
448 toCalendar.get(UCAL_MONTH, status) ) { in formatImpl()
451 toCalendar.get(UCAL_DATE, status) ) { in formatImpl()
[all …]
Dudateintervalformat.cpp142 UCalendar* toCalendar, in udtitvfmt_formatCalendarToResult() argument
151 ->formatToValue(*(Calendar *)fromCalendar, *(Calendar *)toCalendar, *status); in udtitvfmt_formatCalendarToResult()
/third_party/flutter/skia/third_party/externals/icu/source/i18n/
Ddtitvfmt.cpp288 Calendar& toCalendar, in format() argument
293 return formatImpl(fromCalendar, toCalendar, appendTo, pos, status); in format()
299 Calendar& toCalendar, in formatImpl() argument
309 if ( !fromCalendar.isEquivalentTo(toCalendar) ) { in formatImpl()
317 if ( fromCalendar.get(UCAL_ERA,status) != toCalendar.get(UCAL_ERA,status)) { in formatImpl()
320 toCalendar.get(UCAL_YEAR, status) ) { in formatImpl()
323 toCalendar.get(UCAL_MONTH, status) ) { in formatImpl()
326 toCalendar.get(UCAL_DATE, status) ) { in formatImpl()
329 toCalendar.get(UCAL_AM_PM, status) ) { in formatImpl()
332 toCalendar.get(UCAL_HOUR, status) ) { in formatImpl()
[all …]
/third_party/icu/icu4c/source/i18n/unicode/
Ddtitvfmt.h544 Calendar& toCalendar,
567 Calendar& toCalendar,
810 Calendar& toCalendar,
839 Calendar& toCalendar,
1145 Calendar& toCalendar,
Dudateintervalformat.h300 UCalendar* toCalendar,
/third_party/node/deps/icu-small/source/i18n/unicode/
Ddtitvfmt.h544 Calendar& toCalendar,
567 Calendar& toCalendar,
808 Calendar& toCalendar,
837 Calendar& toCalendar,
1143 Calendar& toCalendar,
Dudateintervalformat.h300 UCalendar* toCalendar,
/third_party/skia/third_party/externals/icu/source/i18n/unicode/
Ddtitvfmt.h544 Calendar& toCalendar,
567 Calendar& toCalendar,
810 Calendar& toCalendar,
839 Calendar& toCalendar,
1145 Calendar& toCalendar,
Dudateintervalformat.h300 UCalendar* toCalendar,
/third_party/flutter/skia/third_party/externals/icu/source/i18n/unicode/
Ddtitvfmt.h453 Calendar& toCalendar,
713 Calendar& toCalendar,
992 Calendar& toCalendar,
/third_party/icu/ohos_icu4j/src/main/tests/ohos/global/icu/dev/test/format/
DDateIntervalFormatTest.java935 Calendar toCalendar = (Calendar) dtfmt.getCalendar().clone(); in expectUserCLDR() local
937 toCalendar.setTimeInMillis(dtitv.getToDate()); in expectUserCLDR()
938 dtitvfmt.format(fromCalendar, toCalendar, str, pos); in expectUserCLDR()
1108 Calendar toCalendar = (Calendar) dtfmt.getCalendar().clone(); in stress() local
1110 toCalendar.setTimeInMillis(dtitv.getToDate()); in stress()
1111 dtfmt.intervalFormatByAlgorithm(fromCalendar, toCalendar, str, pos); in stress()
1468 Calendar toCalendar= Calendar.getInstance(Locale.ENGLISH); in TestDateIntervalFormatCoverage() local
1469 toCalendar.set(2016, 5, 23); in TestDateIntervalFormatCoverage()
1471 dtitvfmt.getPatterns(fromCalendar, toCalendar, secondPart), "MMM d – "); in TestDateIntervalFormatCoverage()
/third_party/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/format/
DDateIntervalFormatTest.java1090 Calendar toCalendar = (Calendar) dtfmt.getCalendar().clone(); in expectUserCLDR() local
1092 toCalendar.setTimeInMillis(dtitv.getToDate()); in expectUserCLDR()
1093 dtitvfmt.format(fromCalendar, toCalendar, str, pos); in expectUserCLDR()
1263 Calendar toCalendar = (Calendar) dtfmt.getCalendar().clone(); in stress() local
1265 toCalendar.setTimeInMillis(dtitv.getToDate()); in stress()
1266 dtfmt.intervalFormatByAlgorithm(fromCalendar, toCalendar, str, pos); in stress()
1623 Calendar toCalendar= Calendar.getInstance(Locale.ENGLISH); in TestDateIntervalFormatCoverage() local
1624 toCalendar.set(2016, 5, 23); in TestDateIntervalFormatCoverage()
1626 dtitvfmt.getPatterns(fromCalendar, toCalendar, secondPart), "MMM d – "); in TestDateIntervalFormatCoverage()
/third_party/icu/icu4c/source/test/cintltst/
Dcldrtest.c624 UResourceBundle *toCalendar, *fromCalendar, *toGregorian, *fromGregorian; in compareConsistentCountryInfo() local
633 toCalendar = ures_getByKey(toLocaleBund, "calendar", NULL, &errorCode); in compareConsistentCountryInfo()
634 toGregorian = ures_getByKeyWithFallback(toCalendar, "gregorian", NULL, &errorCode); in compareConsistentCountryInfo()
676 ures_close(toCalendar); in compareConsistentCountryInfo()