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/
Dmsfmrgts.cpp160 pat = fmt->toPattern(pat); in Test4058973()
536 logln("pattern: \"" + mf->toPattern(pat) + "\""); in Test4114739()
565 logln("pattern before: \"" + mf->toPattern(pat) + "\""); in Test4113018()
588 logln("Formatter Pattern : " + fmt->toPattern(pat)); in Test4106661()
645 if (fmt->toPattern(pat) != pattern) { in Test4094906()
712 logln(UnicodeString("") + i + ". pattern :\"" + mf->toPattern(pat) + "\""); in Test4118592()
744 logln("pattern: \"" + mf->toPattern(pat) + "\""); in Test4118594()
758 logln("pattern: \"" + mf->toPattern(pat) + "\""); in Test4118594()
834 logln("pattern: \"" + mf->toPattern(pat) + "\""); in Test4120552()
935 pat = cf->toPattern(pat); in TestChoicePatternQuote()
[all …]
Dtchcfmt.cpp164 pattform->toPattern( res1 ); in TestComplexExample()
166 fileform->toPattern( res1 ); in TestComplexExample()
336 form_pat.toPattern( res1 ); in TestComplexExample()
347 form_pat.toPattern( res1 ); in TestComplexExample()
476 fmt1.toPattern(str); in TestClosures()
572 logln((UnicodeString)" toPattern: " + fmt.toPattern(out)); in _testPattern()
626 fmt.toPattern(patStr); in TestChoiceFormatToPatternOverflow()
Dnumrgts.cpp515 logln("nf toPattern1: " + nf->toPattern(temp)); in Test4086575()
522 logln("nf toPattern2: " + nf->toPattern(temp)); in Test4086575()
541 logln("nf toPattern2: " + nf->toPattern(temp)); in Test4086575()
646 logln("toPattern() returns \"" + df->toPattern(temp) + "\""); in Test4087251()
656 logln("toPattern() returns \"" + df->toPattern(temp) + "\""); in Test4087251()
794 if (dfFoo->toPattern(temp) != UnicodeString("#0000")) in Test4092480()
795 errln("dfFoo.toPattern : " + dfFoo->toPattern(temp)); in Test4092480()
801 if (dfFoo->toPattern(temp) != UnicodeString("#000")) in Test4092480()
802 errln("dfFoo.toPattern : " + dfFoo->toPattern(temp)); in Test4092480()
808 if (dfFoo->toPattern(temp) != UnicodeString("#000")) in Test4092480()
[all …]
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.cpp179 logln("The output pattern is : " + fmt->toPattern(result)); in testBug2()
301 if (form->toPattern(buffer) != testResultPatterns[i]) { in PatternTest()
332 form->toPattern(buffer); in PatternTest()
1238 assertEquals("msgCmp.toPattern()", formatStr, msgCmp.toPattern(patCmp.remove())); in testAdopt()
1239 assertEquals("msg.toPattern()", formatStr, msg.toPattern(patAct.remove())); in testAdopt()
1281 assertEquals("msgCmp.toPattern()", formatStr, msgCmp.toPattern(patCmp.remove())); in testAdopt()
1282 assertEquals("msg.toPattern()", formatStr, msg.toPattern(patAct.remove())); in testAdopt()
1332 assertEquals("msgCmp.toPattern()", formatStr, msgCmp.toPattern(patCmp.remove())); in testAdopt()
1333 assertEquals("msg.toPattern()", formatStr, msg.toPattern(patAct.remove())); in testAdopt()
Ddcfmapts.cpp290 funkyPat = pat.toPattern(funkyPat); in testAPI()
309 s2 = pat.toPattern(s2); in testAPI()
Ddtfmttst.cpp407 logln(" Pattern = " + sdtfmt->toPattern(buf.remove())); in TestFieldPosition()
606 logln((UnicodeString)"pattern=" + fmt->toPattern(pattern) + " string=" + str); in testIt917()
641 logln((UnicodeString)"Pattern " + ((SimpleDateFormat*) fmt)->toPattern(pattern)); in TestCzechMonths459()
736 logln((UnicodeString)"pattern: " + sdf.toPattern(thePat)); in tryPattern()
895 logln(UnicodeString("Trying to parse \"") + s + "\" with " + dateParse->toPattern(thePat)); in TestBadInput135a()
929 …logln((UnicodeString)"Parsed \"" + s + "\" using \"" + dateParse->toPattern(thePat) + "\" to: " + … in TestBadInput135a()
938 s + "\" with \"" + dateParse->toPattern(thePat) + "\""); in TestBadInput135a()
979 …logln(UnicodeString("Parsing \"") + str + "\" with " + ((SimpleDateFormat*)&fmt)->toPattern(thePat… in parse2DigitYear()
/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.h194 virtual UnicodeString& toPattern(UnicodeString& result, UErrorCode& status) const;
Dmsgfmt.cpp709 MessageFormat::toPattern(UnicodeString& appendTo) const { in toPattern() function in MessageFormat
755 appendTo += decfmt->toPattern(buffer); in toPattern()
827 appendTo += sdtfmt->toPattern(buffer); in toPattern()
845 appendTo += ((ChoiceFormat*)fmt)->toPattern(buffer); in toPattern()
849 appendTo += plfmt->toPattern(buffer); in toPattern()
853 appendTo += ((SelectFormat*)fmt)->toPattern(buffer); in toPattern()
/external/icu4c/common/unicode/
Dunimatch.h140 virtual UnicodeString& toPattern(UnicodeString& result,
/external/icu4c/i18n/unicode/
Dselfmt.h304 UnicodeString& toPattern(UnicodeString& appendTo);
Dplurfmt.h471 UnicodeString& toPattern(UnicodeString& appendTo);
Dchoicfmt.h383 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