Home
last modified time | relevance | path

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

/third_party/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/calendar/
DDataDrivenCalendarTest.java77 CalendarFieldsSet fromSet, Calendar fromCalendar, in testConvert() argument
80 : "reverse")+" "+fromCalendar.getType()+"->"+toCalendar.getType()+" "; in testConvert()
82 fromCalendar.clear(); in testConvert()
84 fromSet.setOnCalendar(fromCalendar); in testConvert()
90 if (!fromSet.matches(fromCalendar, diffSet)) { in testConvert()
100 Date fromTime = fromCalendar.getTime(); in testConvert()
104 if (!fromSet.matches(fromCalendar, diffSet)) { in testConvert()
122 +fromCalendar.getType()); in testConvert()
145 Calendar fromCalendar = Calendar.getInstance(fromLoc); in testConvert() local
159 testConvert(caseString, fromSet, fromCalendar, toSet, toCalendar, forward); in testConvert()
[all …]
/third_party/icu/ohos_icu4j/src/main/tests/ohos/global/icu/dev/test/calendar/
DDataDrivenCalendarTest.java80 CalendarFieldsSet fromSet, Calendar fromCalendar, in testConvert() argument
83 : "reverse")+" "+fromCalendar.getType()+"->"+toCalendar.getType()+" "; in testConvert()
85 fromCalendar.clear(); in testConvert()
87 fromSet.setOnCalendar(fromCalendar); in testConvert()
93 if (!fromSet.matches(fromCalendar, diffSet)) { in testConvert()
103 Date fromTime = fromCalendar.getTime(); in testConvert()
107 if (!fromSet.matches(fromCalendar, diffSet)) { in testConvert()
125 +fromCalendar.getType()); in testConvert()
148 Calendar fromCalendar = Calendar.getInstance(fromLoc); in testConvert() local
162 testConvert(caseString, fromSet, fromCalendar, toSet, toCalendar, forward); in testConvert()
[all …]
/third_party/icu/icu4c/source/test/intltest/
Ddadrcal.cpp102 Calendar *fromCalendar= NULL; in testOps() local
120 fromCalendar = Calendar::createInstance(toCalLoc, status); in testOps()
207 fromCalendar->setTime(fromDate, status); in testOps()
214 fromSet.setOnCalendar(fromCalendar, status); in testOps()
224 if (!fromSet.matches(fromCalendar, diffSet, status)) { in testOps()
237 toCalendar = fromCalendar->clone(); in testOps()
284 delete fromCalendar; in testOps()
290 const CalendarFieldsSet &fromSet, Calendar *fromCalendar, in testConvert() argument
294 : "reverse")+" "+fromCalendar->getType()+"->"+toCalendar->getType(); in testConvert()
296 fromCalendar->clear(); in testConvert()
[all …]
/third_party/icu/ohos_icu4j/src/main/java/ohos/global/icu/text/
DDateIntervalFormat.java799 public String getPatterns(Calendar fromCalendar, in getPatterns() argument
804 if ( fromCalendar.get(Calendar.ERA) != toCalendar.get(Calendar.ERA) ) { in getPatterns()
806 } else if ( fromCalendar.get(Calendar.YEAR) != in getPatterns()
809 } else if ( fromCalendar.get(Calendar.MONTH) != in getPatterns()
812 } else if ( fromCalendar.get(Calendar.DATE) != in getPatterns()
815 } else if ( fromCalendar.get(Calendar.AM_PM) != in getPatterns()
818 } else if ( fromCalendar.get(Calendar.HOUR) != in getPatterns()
821 } else if ( fromCalendar.get(Calendar.MINUTE) != in getPatterns()
824 } else if ( fromCalendar.get(Calendar.SECOND) != in getPatterns()
827 } else if ( fromCalendar.get(Calendar.MILLISECOND) != in getPatterns()
[all …]
DSimpleDateFormat.java4236 public final StringBuffer intervalFormatByAlgorithm(Calendar fromCalendar, in intervalFormatByAlgorithm() argument
4243 if ( !fromCalendar.isEquivalentTo(toCalendar) ) { in intervalFormatByAlgorithm()
4255 if ( diffCalFieldValue(fromCalendar, toCalendar, items, i) ) { in intervalFormatByAlgorithm()
4263 return format(fromCalendar, appendTo, pos); in intervalFormatByAlgorithm()
4268 if ( diffCalFieldValue(fromCalendar, toCalendar, items, i) ) { in intervalFormatByAlgorithm()
4279 format(fromCalendar, appendTo, pos); in intervalFormatByAlgorithm()
4331 format(fromCalendar, appendTo, pos); in intervalFormatByAlgorithm()
4352 i, capSetting, pos, item.type, fromCalendar); in intervalFormatByAlgorithm()
4355 i, capSetting, pos, item.type, fromCalendar)); in intervalFormatByAlgorithm()
4396 private boolean diffCalFieldValue(Calendar fromCalendar, in diffCalFieldValue() argument
[all …]
/third_party/icu/icu4j/main/classes/core/src/com/ibm/icu/text/
DDateIntervalFormat.java826 public String getPatterns(Calendar fromCalendar, in getPatterns() argument
831 if ( fromCalendar.get(Calendar.ERA) != toCalendar.get(Calendar.ERA) ) { in getPatterns()
833 } else if ( fromCalendar.get(Calendar.YEAR) != in getPatterns()
836 } else if ( fromCalendar.get(Calendar.MONTH) != in getPatterns()
839 } else if ( fromCalendar.get(Calendar.DATE) != in getPatterns()
842 } else if ( fromCalendar.get(Calendar.AM_PM) != in getPatterns()
845 } else if ( fromCalendar.get(Calendar.HOUR) != in getPatterns()
848 } else if ( fromCalendar.get(Calendar.MINUTE) != in getPatterns()
851 } else if ( fromCalendar.get(Calendar.SECOND) != in getPatterns()
854 } else if ( fromCalendar.get(Calendar.MILLISECOND) != in getPatterns()
[all …]
DSimpleDateFormat.java4272 public final StringBuffer intervalFormatByAlgorithm(Calendar fromCalendar, in intervalFormatByAlgorithm() argument
4279 if ( !fromCalendar.isEquivalentTo(toCalendar) ) { in intervalFormatByAlgorithm()
4291 if ( diffCalFieldValue(fromCalendar, toCalendar, items, i) ) { in intervalFormatByAlgorithm()
4299 return format(fromCalendar, appendTo, pos); in intervalFormatByAlgorithm()
4304 if ( diffCalFieldValue(fromCalendar, toCalendar, items, i) ) { in intervalFormatByAlgorithm()
4315 format(fromCalendar, appendTo, pos); in intervalFormatByAlgorithm()
4367 format(fromCalendar, appendTo, pos); in intervalFormatByAlgorithm()
4388 i, capSetting, pos, item.type, fromCalendar); in intervalFormatByAlgorithm()
4391 i, capSetting, pos, item.type, fromCalendar)); in intervalFormatByAlgorithm()
4432 private boolean diffCalFieldValue(Calendar fromCalendar, in diffCalFieldValue() argument
[all …]
/third_party/icu/icu4c/source/i18n/
Ddtitvfmt.cpp348 DateIntervalFormat::format(Calendar& fromCalendar, in format() argument
358 return formatImpl(fromCalendar, toCalendar, appendTo, ignore, handler, status); in format()
363 Calendar& fromCalendar, in formatToValue() argument
380 formatImpl(fromCalendar, toCalendar, string, firstIndex, handler, status); in formatToValue()
419 DateIntervalFormat::formatImpl(Calendar& fromCalendar, in formatImpl() argument
434 if ( !fromCalendar.isEquivalentTo(toCalendar) ) { in formatImpl()
442 if ( fromCalendar.get(UCAL_ERA,status) != toCalendar.get(UCAL_ERA,status)) { in formatImpl()
444 } else if ( fromCalendar.get(UCAL_YEAR, status) != in formatImpl()
447 } else if ( fromCalendar.get(UCAL_MONTH, status) != in formatImpl()
450 } else if ( fromCalendar.get(UCAL_DATE, status) != in formatImpl()
[all …]
Dudateintervalformat.cpp141 UCalendar* fromCalendar, in udtitvfmt_formatCalendarToResult() argument
151 ->formatToValue(*(Calendar *)fromCalendar, *(Calendar *)toCalendar, *status); in udtitvfmt_formatCalendarToResult()
/third_party/node/deps/icu-small/source/i18n/
Ddtitvfmt.cpp348 DateIntervalFormat::format(Calendar& fromCalendar, in format() argument
358 return formatImpl(fromCalendar, toCalendar, appendTo, ignore, handler, status); in format()
363 Calendar& fromCalendar, in formatToValue() argument
380 formatImpl(fromCalendar, toCalendar, string, firstIndex, handler, status); in formatToValue()
419 DateIntervalFormat::formatImpl(Calendar& fromCalendar, in formatImpl() argument
434 if ( !fromCalendar.isEquivalentTo(toCalendar) ) { in formatImpl()
442 if ( fromCalendar.get(UCAL_ERA,status) != toCalendar.get(UCAL_ERA,status)) { in formatImpl()
444 } else if ( fromCalendar.get(UCAL_YEAR, status) != in formatImpl()
447 } else if ( fromCalendar.get(UCAL_MONTH, status) != in formatImpl()
450 } else if ( fromCalendar.get(UCAL_DATE, status) != in formatImpl()
[all …]
Dudateintervalformat.cpp141 UCalendar* fromCalendar, in udtitvfmt_formatCalendarToResult() argument
151 ->formatToValue(*(Calendar *)fromCalendar, *(Calendar *)toCalendar, *status); in udtitvfmt_formatCalendarToResult()
/third_party/skia/third_party/externals/icu/source/i18n/
Ddtitvfmt.cpp348 DateIntervalFormat::format(Calendar& fromCalendar, in format() argument
358 return formatImpl(fromCalendar, toCalendar, appendTo, ignore, handler, status); in format()
363 Calendar& fromCalendar, in formatToValue() argument
380 formatImpl(fromCalendar, toCalendar, string, firstIndex, handler, status); in formatToValue()
419 DateIntervalFormat::formatImpl(Calendar& fromCalendar, in formatImpl() argument
434 if ( !fromCalendar.isEquivalentTo(toCalendar) ) { in formatImpl()
442 if ( fromCalendar.get(UCAL_ERA,status) != toCalendar.get(UCAL_ERA,status)) { in formatImpl()
444 } else if ( fromCalendar.get(UCAL_YEAR, status) != in formatImpl()
447 } else if ( fromCalendar.get(UCAL_MONTH, status) != in formatImpl()
450 } else if ( fromCalendar.get(UCAL_DATE, status) != in formatImpl()
[all …]
Dudateintervalformat.cpp141 UCalendar* fromCalendar, 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.cpp287 DateIntervalFormat::format(Calendar& fromCalendar, in format() argument
293 return formatImpl(fromCalendar, toCalendar, appendTo, pos, status); in format()
298 DateIntervalFormat::formatImpl(Calendar& fromCalendar, in formatImpl() argument
309 if ( !fromCalendar.isEquivalentTo(toCalendar) ) { in formatImpl()
317 if ( fromCalendar.get(UCAL_ERA,status) != toCalendar.get(UCAL_ERA,status)) { in formatImpl()
319 } else if ( fromCalendar.get(UCAL_YEAR, status) != in formatImpl()
322 } else if ( fromCalendar.get(UCAL_MONTH, status) != in formatImpl()
325 } else if ( fromCalendar.get(UCAL_DATE, status) != in formatImpl()
328 } else if ( fromCalendar.get(UCAL_AM_PM, status) != in formatImpl()
331 } else if ( fromCalendar.get(UCAL_HOUR, status) != in formatImpl()
[all …]
/third_party/icu/icu4c/source/i18n/unicode/
Ddtitvfmt.h543 UnicodeString& format(Calendar& fromCalendar,
566 Calendar& fromCalendar,
809 Calendar& fromCalendar,
838 UnicodeString& fallbackFormat(Calendar& fromCalendar,
1144 UnicodeString& formatImpl(Calendar& fromCalendar,
Dudateintervalformat.h299 UCalendar* fromCalendar,
/third_party/node/deps/icu-small/source/i18n/unicode/
Ddtitvfmt.h543 UnicodeString& format(Calendar& fromCalendar,
566 Calendar& fromCalendar,
807 Calendar& fromCalendar,
836 UnicodeString& fallbackFormat(Calendar& fromCalendar,
1142 UnicodeString& formatImpl(Calendar& fromCalendar,
Dudateintervalformat.h299 UCalendar* fromCalendar,
/third_party/skia/third_party/externals/icu/source/i18n/unicode/
Ddtitvfmt.h543 UnicodeString& format(Calendar& fromCalendar,
566 Calendar& fromCalendar,
809 Calendar& fromCalendar,
838 UnicodeString& fallbackFormat(Calendar& fromCalendar,
1144 UnicodeString& formatImpl(Calendar& fromCalendar,
Dudateintervalformat.h299 UCalendar* fromCalendar,
/third_party/flutter/skia/third_party/externals/icu/source/i18n/unicode/
Ddtitvfmt.h452 UnicodeString& format(Calendar& fromCalendar,
712 UnicodeString& fallbackFormat(Calendar& fromCalendar,
991 UnicodeString& formatImpl(Calendar& fromCalendar,
/third_party/icu/ohos_icu4j/src/main/tests/ohos/global/icu/dev/test/format/
DDateIntervalFormatTest.java934 Calendar fromCalendar = (Calendar) dtfmt.getCalendar().clone(); in expectUserCLDR() local
936 fromCalendar.setTimeInMillis(dtitv.getFromDate()); in expectUserCLDR()
938 dtitvfmt.format(fromCalendar, toCalendar, str, pos); in expectUserCLDR()
1107 Calendar fromCalendar = (Calendar) dtfmt.getCalendar().clone(); in stress() local
1109 fromCalendar.setTimeInMillis(dtitv.getFromDate()); in stress()
1111 dtfmt.intervalFormatByAlgorithm(fromCalendar, toCalendar, str, pos); in stress()
1466 Calendar fromCalendar = Calendar.getInstance(Locale.ENGLISH); in TestDateIntervalFormatCoverage() local
1467 fromCalendar.set(2016, 5, 22); 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.java1089 Calendar fromCalendar = (Calendar) dtfmt.getCalendar().clone(); in expectUserCLDR() local
1091 fromCalendar.setTimeInMillis(dtitv.getFromDate()); in expectUserCLDR()
1093 dtitvfmt.format(fromCalendar, toCalendar, str, pos); in expectUserCLDR()
1262 Calendar fromCalendar = (Calendar) dtfmt.getCalendar().clone(); in stress() local
1264 fromCalendar.setTimeInMillis(dtitv.getFromDate()); in stress()
1266 dtfmt.intervalFormatByAlgorithm(fromCalendar, toCalendar, str, pos); in stress()
1621 Calendar fromCalendar = Calendar.getInstance(Locale.ENGLISH); in TestDateIntervalFormatCoverage() local
1622 fromCalendar.set(2016, 5, 22); 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
630 fromCalendar = ures_getByKey(fromLocaleBund, "calendar", NULL, &errorCode); in compareConsistentCountryInfo()
631 fromGregorian = ures_getByKeyWithFallback(fromCalendar, "gregorian", NULL, &errorCode); in compareConsistentCountryInfo()
675 ures_close(fromCalendar); in compareConsistentCountryInfo()