Home
last modified time | relevance | path

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

/external/icu/icu4c/source/test/intltest/
Dtufmtts.cpp465 UnicodeString formattedString = "1 minutes"; in test10219Plurals() local
466 tuf.parseObject(formattedString, result, pos); in test10219Plurals()
467 if (formattedString.length() != pos.getIndex()) { in test10219Plurals()
Ddtfmttst.h254 UBool showParse(DateFormat &format, const UnicodeString &formattedString);
Ddtfmttst.cpp4337 UnicodeString formattedString; in TestDotAndAtLeniency() local
4342 format->format(TEST_DATE, formattedString); in TestDotAndAtLeniency()
4344 if (!showParse(*format, formattedString)) { in TestDotAndAtLeniency()
4349formattedString = dateFormat->format(TEST_DATE, ds) + " " + timeFormat->format(TEST_DATE, ts); in TestDotAndAtLeniency()
4350 if (!showParse(*format, formattedString)) { in TestDotAndAtLeniency()
4353 …if (formattedString.indexOf("n ") >= 0) { // will add "." after the end of text ending in 'n', lik… in TestDotAndAtLeniency()
4354 UnicodeString plusDot(formattedString); in TestDotAndAtLeniency()
4360 … if (formattedString.indexOf(". ") >= 0) { // will subtract "." at the end of strings. in TestDotAndAtLeniency()
4361 UnicodeString minusDot(formattedString); in TestDotAndAtLeniency()
4372 UBool DateFormatTest::showParse(DateFormat &format, const UnicodeString &formattedString) { in showParse() argument
[all …]
Ddtfmrgts.cpp1565 UnicodeString formattedString(""); in TestT10334() local
1568 format.format(referenceDate, formattedString, fp, status); in TestT10334()
1569 logln("ref date: " + formattedString); in TestT10334()
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/format/
DDateFormatTest.java4511 String formattedString = format.format(TEST_DATE); in TestDotAndAtLeniency() local
4513 tests.add(new Object[]{format, formattedString}); in TestDotAndAtLeniency()
4515formattedString = dateFormat.format(TEST_DATE) + " " + timeFormat.format(TEST_DATE); in TestDotAndAtLeniency()
4516 tests.add(new Object[]{format, formattedString}); in TestDotAndAtLeniency()
4517 …if (formattedString.contains("n ")) { // will add "." after the end of text ending in 'n', like Ja… in TestDotAndAtLeniency()
4518 tests.add(new Object[]{format, formattedString.replace("n ", "n. ") + "."}); in TestDotAndAtLeniency()
4520 … if (formattedString.contains(". ")) { // will subtract "." at the end of strings. in TestDotAndAtLeniency()
4521 tests.add(new Object[]{format, formattedString.replace(". ", " ")}); in TestDotAndAtLeniency()
4527 String formattedString = (String) test[1]; in TestDotAndAtLeniency() local
4528 if (!showParse(format, formattedString)) { in TestDotAndAtLeniency()
[all …]
DDateFormatRegressionTest.java1313 StringBuffer formattedString = new StringBuffer(); in TestT10334() local
1314 formattedString = format.format(referenceDate, formattedString, fp); in TestT10334()
1315 logln("ref date: " + formattedString); in TestT10334()