Lines Matching refs:formattedString
4445 UnicodeString formattedString; in TestDotAndAtLeniency() local
4450 format->format(TEST_DATE, formattedString); in TestDotAndAtLeniency()
4452 if (!showParse(*format, formattedString)) { in TestDotAndAtLeniency()
4457 … formattedString = dateFormat->format(TEST_DATE, ds) + " " + timeFormat->format(TEST_DATE, ts); in TestDotAndAtLeniency()
4458 if (!showParse(*format, formattedString)) { in TestDotAndAtLeniency()
4461 …if (formattedString.indexOf("n ") >= 0) { // will add "." after the end of text ending in 'n', lik… in TestDotAndAtLeniency()
4462 UnicodeString plusDot(formattedString); in TestDotAndAtLeniency()
4468 … if (formattedString.indexOf(". ") >= 0) { // will subtract "." at the end of strings. in TestDotAndAtLeniency()
4469 UnicodeString minusDot(formattedString); in TestDotAndAtLeniency()
4480 UBool DateFormatTest::showParse(DateFormat &format, const UnicodeString &formattedString) { in showParse() argument
4482 UDate parsed = format.parse(formattedString, parsePosition); in showParse()
4483 UBool ok = TEST_DATE == parsed && parsePosition.getIndex() == formattedString.length(); in showParse()
4487 logln(pattern + " parsed: " + formattedString); in showParse()
4489 errln(pattern + " fails to parse: " + formattedString); in showParse()