Home
last modified time | relevance | path

Searched refs:toPattern (Results 1 – 25 of 63) sorted by relevance

123

/external/apache-harmony/text/src/test/java/org/apache/harmony/text/tests/java/text/
DMessageFormatTest.java57 assertTrue("Not equal: " + format.toPattern(), format.equals(read)); in checkSerialization()
59 fail("Format: " + format.toPattern() in checkSerialization()
62 fail("Format: " + format.toPattern() in checkSerialization()
181 assertEquals("Found formats", "nothing", format.toPattern()); in test_applyPatternLjava_lang_String()
185 assertEquals("Wrong pattern", "{0}", format.toPattern()); in test_applyPatternLjava_lang_String()
190 assertEquals("Wrong time pattern", "{0,time}", format.toPattern()); in test_applyPatternLjava_lang_String()
195 "{0,time,short}", format.toPattern()); in test_applyPatternLjava_lang_String()
200 "{0,time}", format.toPattern()); in test_applyPatternLjava_lang_String()
205 "{0,time,long}", format.toPattern()); in test_applyPatternLjava_lang_String()
213 "{0,time,full}", format.toPattern()); in test_applyPatternLjava_lang_String()
[all …]
DChoiceFormatTest.java188 String ptrn = f.toPattern(); in test_applyPatternLjava_lang_String()
411 assertEquals("", cf.toPattern()); in test_toPattern()
415 cf.toPattern()); in test_toPattern()
418 String ptrn = mf.toPattern(); in test_toPattern()
422 String pattern = f1.toPattern(); in test_toPattern()
432 ptrn = cf.toPattern(); in test_toPattern()
DNumberFormatTest.java130 "#,##0", format.toPattern()); in test_getIntegerInstance()
157 "#,##0", format.toPattern()); in test_getIntegerInstanceLjava_util_Locale()
177 "#,##0;#,##0-", format.toPattern()); in test_getIntegerInstanceLjava_util_Locale()
DDateFormatTest.java206 assertTrue("Wrong default", f2.toPattern().equals( in testDateTime()
207 date.toPattern() + " " + time.toPattern())); in testDateTime()
255 assertTrue("Wrong default", f2.toPattern().equals( in testDateTimeLocale()
256 date.toPattern() + " " + time.toPattern())); in testDateTimeLocale()
DSimpleDateFormatTest.java128 assertEquals("Wrong pattern", "yyyy", f2.toPattern()); in test_ConstructorLjava_lang_String()
165 assertEquals("Wrong pattern", "y'y'yy", f2.toPattern()); in test_ConstructorLjava_lang_StringLjava_text_DateFormatSymbols()
181 assertEquals("Wrong pattern", "'yyyy' MM yy", f2.toPattern()); in test_ConstructorLjava_lang_StringLjava_util_Locale()
196 String pattern = f2.toPattern(); in test_applyLocalizedPatternLjava_lang_String()
203 pattern = f2.toPattern(); in test_applyLocalizedPatternLjava_lang_String()
240 assertEquals("Wrong pattern", "GyMdkHmsSEDFwWahKz", f2.toPattern()); in test_applyPatternLjava_lang_String()
/external/icu4c/test/intltest/
Dtchcfmt.cpp174 pattform->toPattern( res1 ); in TestComplexExample()
176 fileform->toPattern( res1 ); in TestComplexExample()
348 form_pat.toPattern( res1 ); in TestComplexExample()
359 form_pat.toPattern( res1 ); in TestComplexExample()
488 fmt1.toPattern(str); in TestClosures()
586 logln((UnicodeString)" toPattern: " + fmt.toPattern(out)); in _testPattern()
642 fmt.toPattern(patStr); in TestChoiceFormatToPatternOverflow()
Dnumrgts.cpp516 logln("nf toPattern1: " + nf->toPattern(temp)); in Test4086575()
523 logln("nf toPattern2: " + nf->toPattern(temp)); in Test4086575()
542 logln("nf toPattern2: " + nf->toPattern(temp)); in Test4086575()
647 logln("toPattern() returns \"" + df->toPattern(temp) + "\""); in Test4087251()
657 logln("toPattern() returns \"" + df->toPattern(temp) + "\""); in Test4087251()
795 if (dfFoo->toPattern(temp) != UnicodeString("#0000")) in Test4092480()
796 errln("dfFoo.toPattern : " + dfFoo->toPattern(temp)); in Test4092480()
802 if (dfFoo->toPattern(temp) != UnicodeString("#000")) in Test4092480()
803 errln("dfFoo.toPattern : " + dfFoo->toPattern(temp)); in Test4092480()
809 if (dfFoo->toPattern(temp) != UnicodeString("#000")) in Test4092480()
[all …]
Dmsfmrgts.cpp538 logln("pattern: \"" + mf->toPattern(pat) + "\""); in Test4114739()
567 logln("pattern before: \"" + mf->toPattern(pat) + "\""); in Test4113018()
590 logln("Formatter Pattern : " + fmt->toPattern(pat)); in Test4106661()
647 if (fmt->toPattern(pat) != pattern) { in Test4094906()
714 logln(UnicodeString("") + i + ". pattern :\"" + mf->toPattern(pat) + "\""); in Test4118592()
746 logln("pattern: \"" + mf->toPattern(pat) + "\""); in Test4118594()
760 logln("pattern: \"" + mf->toPattern(pat) + "\""); in Test4118594()
836 logln("pattern: \"" + mf->toPattern(pat) + "\""); in Test4120552()
946 pat = cf->toPattern(pat); in TestChoicePatternQuote()
949 pat2 = cf2->toPattern(pat2); in TestChoicePatternQuote()
Dusettest.cpp38 set.toPattern(pat); in operator +()
110 test.toPattern(ustrPat, TRUE); in Testj2268()
230 testSet.toPattern(pat0, TRUE); in checkPat()
238 testSet.toPattern(pat2, FALSE); in checkPat()
852 testList[i]->toPattern(pat0, TRUE); in TestStrings()
853 testList[i+1]->toPattern(pat1, TRUE); in TestStrings()
1299 s.toPattern(buf, TRUE) + ", expected " + exp); in TestCloseOver()
1340 … errln((UnicodeString)"old "+s.toPattern(buf, TRUE)+" new: "+t.toPattern(buf2, TRUE)); in TestCloseOver()
1357 errln((UnicodeString)"FAIL: closeOver("+s2.toPattern(buf, TRUE)+") differs: "); in TestCloseOver()
1358 … errln((UnicodeString)"old "+s.toPattern(buf, TRUE)+" new: "+t.toPattern(buf2, TRUE)); in TestCloseOver()
[all …]
Dtmsgfmt.cpp182 logln("The output pattern is : " + fmt->toPattern(result)); in testBug2()
308 if (form->toPattern(buffer) != testCases[i]) { in PatternTest()
343 form->toPattern(buffer); in PatternTest()
1270 assertEquals("msgCmp.toPattern()", formatStr, msgCmp.toPattern(patCmp.remove())); in testAdopt()
1273 msg.toPattern(patCmp.remove()); in testAdopt()
1318 assertEquals("msgCmp.toPattern()", formatStr, msgCmp.toPattern(patCmp.remove())); in testAdopt()
1370 assertEquals("msgCmp.toPattern()", formatStr, msgCmp.toPattern(patCmp.remove())); in testAdopt()
Ddtfmttst.cpp416 logln(" Pattern = " + sdtfmt->toPattern(buf.remove())); in TestFieldPosition()
615 logln((UnicodeString)"pattern=" + fmt->toPattern(pattern) + " string=" + str); in testIt917()
650 logln((UnicodeString)"Pattern " + ((SimpleDateFormat*) fmt)->toPattern(pattern)); in TestCzechMonths459()
745 logln((UnicodeString)"pattern: " + sdf.toPattern(thePat)); in tryPattern()
833 sdtfmt->toPattern(pattern); in TestBadInput135()
927 logln(UnicodeString("Trying to parse \"") + s + "\" with " + dateParse->toPattern(thePat)); in TestBadInput135a()
961 …logln((UnicodeString)"Parsed \"" + s + "\" using \"" + dateParse->toPattern(thePat) + "\" to: " + … in TestBadInput135a()
970 s + "\" with \"" + dateParse->toPattern(thePat) + "\""); in TestBadInput135a()
1011 …logln(UnicodeString("Parsing \"") + str + "\" with " + ((SimpleDateFormat*)&fmt)->toPattern(thePat… in parse2DigitYear()
Ddcfmapts.cpp290 funkyPat = pat.toPattern(funkyPat); in testAPI()
309 s2 = pat.toPattern(s2); in testAPI()
/external/icu4c/i18n/
Dquant.cpp95 UnicodeString& Quantifier::toPattern(UnicodeString& result, in toPattern() function in Quantifier
98 matcher->toMatcher()->toPattern(result, escapeUnprintable); in toPattern()
Dstrmatch.cpp155 UnicodeString& StringMatcher::toPattern(UnicodeString& result, in toPattern() function in StringMatcher
169 ICU_Utility::appendToRule(result, m->toPattern(str, escapeUnprintable), in toPattern()
Dquant.h81 virtual UnicodeString& toPattern(UnicodeString& result,
Dreldtfmt.cpp259 RelativeDateFormat::toPattern(UnicodeString& result, UErrorCode& status) const in toPattern() function in RelativeDateFormat
293 sdtfmt->toPattern(result); in toPatternDate()
310 sdtfmt->toPattern(result); in toPatternTime()
Dstrmatch.h128 virtual UnicodeString& toPattern(UnicodeString& result,
Dreldtfmt.h195 virtual UnicodeString& toPattern(UnicodeString& result, UErrorCode& status) const;
Dselfmt.cpp115 SelectFormat::toPattern(UnicodeString& appendTo) { in toPattern() function in SelectFormat
/external/icu4c/common/unicode/
Dunimatch.h140 virtual UnicodeString& toPattern(UnicodeString& result,
/external/icu4c/i18n/unicode/
Dselfmt.h303 UnicodeString& toPattern(UnicodeString& appendTo);
Dplurfmt.h439 UnicodeString& toPattern(UnicodeString& appendTo);
Dchoicfmt.h290 virtual UnicodeString& toPattern(UnicodeString &pattern) const;
/external/chromium/base/i18n/
Dtime_formatting.cc108 formatter->toPattern(pattern_unicode); in GetHourClockType()
/external/icu4c/common/
Duset_props.cpp134 ((const UnicodeSet*) set)->toPattern(pat, escapeUnprintable); in uset_toPattern()

123