Home
last modified time | relevance | path

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

/third_party/icu/icu4c/source/test/intltest/
Dtufmtts.cpp510 UnicodeString formattedString = "1 minutes"; in test10219Plurals() local
511 tuf.parseObject(formattedString, result, pos); in test10219Plurals()
512 if (formattedString.length() != pos.getIndex()) { in test10219Plurals()
Ddtfmttst.h272 UBool showParse(DateFormat &format, const UnicodeString &formattedString);
Ddtfmttst.cpp4521 UnicodeString formattedString; in TestDotAndAtLeniency() local
4526 format->format(TEST_DATE, formattedString); in TestDotAndAtLeniency()
4528 if (!showParse(*format, formattedString)) { in TestDotAndAtLeniency()
4533formattedString = dateFormat->format(TEST_DATE, ds) + " " + timeFormat->format(TEST_DATE, ts); in TestDotAndAtLeniency()
4534 if (!showParse(*format, formattedString)) { in TestDotAndAtLeniency()
4537 …if (formattedString.indexOf("n ") >= 0) { // will add "." after the end of text ending in 'n', lik… in TestDotAndAtLeniency()
4538 UnicodeString plusDot(formattedString); in TestDotAndAtLeniency()
4544 … if (formattedString.indexOf(". ") >= 0) { // will subtract "." at the end of strings. in TestDotAndAtLeniency()
4545 UnicodeString minusDot(formattedString); in TestDotAndAtLeniency()
4556 UBool DateFormatTest::showParse(DateFormat &format, const UnicodeString &formattedString) { in showParse() argument
[all …]
Ddtfmrgts.cpp1593 UnicodeString formattedString(""); in TestT10334() local
1596 format.format(referenceDate, formattedString, fp, status); in TestT10334()
1597 logln("ref date: " + formattedString); in TestT10334()
/third_party/icu/ohos_icu4j/src/main/tests/ohos/global/icu/dev/test/format/
DDateFormatTest.java4657 String formattedString = format.format(TEST_DATE); in TestDotAndAtLeniency() local
4659 tests.add(new Object[]{format, formattedString}); in TestDotAndAtLeniency()
4661formattedString = dateFormat.format(TEST_DATE) + " " + timeFormat.format(TEST_DATE); in TestDotAndAtLeniency()
4662 tests.add(new Object[]{format, formattedString}); in TestDotAndAtLeniency()
4663 …if (formattedString.contains("n ")) { // will add "." after the end of text ending in 'n', like Ja… in TestDotAndAtLeniency()
4664 tests.add(new Object[]{format, formattedString.replace("n ", "n. ") + "."}); in TestDotAndAtLeniency()
4666 … if (formattedString.contains(". ")) { // will subtract "." at the end of strings. in TestDotAndAtLeniency()
4667 tests.add(new Object[]{format, formattedString.replace(". ", " ")}); in TestDotAndAtLeniency()
4673 String formattedString = (String) test[1]; in TestDotAndAtLeniency() local
4674 if (!showParse(format, formattedString)) { in TestDotAndAtLeniency()
[all …]
DDateFormatRegressionTest.java1387 StringBuffer formattedString = new StringBuffer(); in TestT10334() local
1388 formattedString = format.format(referenceDate, formattedString, fp); in TestT10334()
1389 logln("ref date: " + formattedString); in TestT10334()
/third_party/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/format/
DDateFormatTest.java4754 String formattedString = format.format(TEST_DATE); in TestDotAndAtLeniency() local
4756 tests.add(new Object[]{format, formattedString}); in TestDotAndAtLeniency()
4758formattedString = dateFormat.format(TEST_DATE) + " " + timeFormat.format(TEST_DATE); in TestDotAndAtLeniency()
4759 tests.add(new Object[]{format, formattedString}); in TestDotAndAtLeniency()
4760 …if (formattedString.contains("n ")) { // will add "." after the end of text ending in 'n', like Ja… in TestDotAndAtLeniency()
4761 tests.add(new Object[]{format, formattedString.replace("n ", "n. ") + "."}); in TestDotAndAtLeniency()
4763 … if (formattedString.contains(". ")) { // will subtract "." at the end of strings. in TestDotAndAtLeniency()
4764 tests.add(new Object[]{format, formattedString.replace(". ", " ")}); in TestDotAndAtLeniency()
4770 String formattedString = (String) test[1]; in TestDotAndAtLeniency() local
4771 if (!showParse(format, formattedString)) { in TestDotAndAtLeniency()
[all …]
DDateFormatRegressionTest.java1384 StringBuffer formattedString = new StringBuffer(); in TestT10334() local
1385 formattedString = format.format(referenceDate, formattedString, fp); in TestT10334()
1386 logln("ref date: " + formattedString); in TestT10334()
/third_party/python/Tools/msi/bundle/bootstrap/
DPythonBootstrapperApplication.cpp556 LPWSTR formattedString = nullptr; in SuccessPage_Show() local
557 BalFormatString(successText->wzText, &formattedString); in SuccessPage_Show()
558 if (formattedString) { in SuccessPage_Show()
559 ThemeSetTextControl(_theme, ID_SUCCESS_TEXT, formattedString); in SuccessPage_Show()
560 StrFree(formattedString); in SuccessPage_Show()