Home
last modified time | relevance | path

Searched refs:tstyle (Results 1 – 6 of 6) sorted by relevance

/third_party/icu/icu4j/main/tests/localespi/src/com/ibm/icu/dev/test/localespi/
DDateFormatTest.java43 private void checkGetInstance(int dstyle, int tstyle, Locale loc) { in checkGetInstance() argument
45 DateFormat df = getJDKInstance(dstyle, tstyle, loc, method); in checkGetInstance()
58 DateFormat dfIcu = getJDKInstance(dstyle, tstyle, iculoc, null); in checkGetInstance()
72 private DateFormat getJDKInstance(int dstyle, int tstyle, Locale loc, String[] methodName) { in getJDKInstance() argument
76 df = DateFormat.getTimeInstance(tstyle, loc); in getJDKInstance()
78 } else if (tstyle < 0) { in getJDKInstance()
82 df = DateFormat.getDateTimeInstance(dstyle, tstyle, loc); in getJDKInstance()
91 …private com.ibm.icu.text.DateFormat getICUInstance(int dstyle, int tstyle, Locale loc, String[] me… in getICUInstance() argument
95 icudf = com.ibm.icu.text.DateFormat.getTimeInstance(tstyle, loc); in getICUInstance()
97 } else if (tstyle < 0) { in getICUInstance()
[all …]
/third_party/icu/icu4j/main/classes/localespi/src/com/ibm/icu/impl/javaspi/text/
DDateFormatProviderICU.java43 private DateFormat getInstance(int dstyle, int tstyle, Locale locale) { in getInstance() argument
47 icuDfmt = com.ibm.icu.text.DateFormat.getTimeInstance(tstyle, actual); in getInstance()
48 } else if (tstyle == NONE) { in getInstance()
51 icuDfmt = com.ibm.icu.text.DateFormat.getDateTimeInstance(dstyle, tstyle, actual); in getInstance()
/third_party/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/format/
DDateFormatRoundTripTest.java137 for (int tstyle = DateFormat.FULL; tstyle <= DateFormat.SHORT; ++tstyle) { in _test()
139 logln("Testing dstyle " + styleName(dstyle) + ", tstyle " + styleName(tstyle)); in _test()
140 DateFormat df = DateFormat.getDateTimeInstance(dstyle, tstyle, loc); in _test()
/third_party/icu/ohos_icu4j/src/main/tests/ohos/global/icu/dev/test/format/
DDateFormatRoundTripTest.java140 for (int tstyle = DateFormat.FULL; tstyle <= DateFormat.SHORT; ++tstyle) { in _test()
142 logln("Testing dstyle " + styleName(dstyle) + ", tstyle " + styleName(tstyle)); in _test()
143 DateFormat df = DateFormat.getDateTimeInstance(dstyle, tstyle, loc); in _test()
/third_party/boost/libs/locale/src/icu/
Dformatter.cpp530 icu::DateFormat::EStyle tstyle = icu::DateFormat::kDefault; in generate_formatter() local
533 case time_short: tstyle=icu::DateFormat::kShort; break; in generate_formatter()
534 case time_medium: tstyle=icu::DateFormat::kMedium; break; in generate_formatter()
535 case time_long: tstyle=icu::DateFormat::kLong; break; in generate_formatter()
536 case time_full: tstyle=icu::DateFormat::kFull; break; in generate_formatter()
548 adf.reset(icu::DateFormat::createTimeInstance(tstyle,locale)); in generate_formatter()
550 … adf.reset(icu::DateFormat::createDateTimeInstance(dstyle,tstyle,locale)); in generate_formatter()
/third_party/icu/icu4c/source/test/intltest/
Ddtfmtrtts.cpp264 for(int32_t tstyle = DateFormat::FULL; tstyle <= DateFormat::SHORT; ++tstyle) { in test() local
266 …(DateFormat::EStyle)dstyle)) + ", tstyle" + UnicodeString(styleName((DateFormat::EStyle)tstyle)) ); in test()
267 … = DateFormat::createDateTimeInstance((DateFormat::EStyle)dstyle, (DateFormat::EStyle)tstyle, loc); in test()
269 …tyle)dstyle)) + ", tstyle" + UnicodeString(styleName((DateFormat::EStyle)tstyle)) + "Locale: " … in test()