Lines Matching refs:pattern
181 // {sfb} use double format in pattern, so result will match (not strictly necessary)
182 const UnicodeString pattern = "There {0,choice,0#are no files|1#is one file|1<are {0, number} files} on disk {1}. ";
183 logln("The input pattern : " + pattern);
184 MessageFormat *fmt = new MessageFormat(pattern, status);
186 dataerrln("MessageFormat pattern creation failed. - %s", u_errorName(status));
189 logln("The output pattern is : " + fmt->toPattern(result));
190 if (pattern != result) {
269 // ICU 4.8 returns the original pattern (testCases),
270 // rather than toPattern() reconstituting a new, equivalent pattern string (testResultPatterns).
308 // ICU 4.8 returns the original pattern (testCases),
309 // rather than toPattern() reconstituting a new, equivalent pattern string (testResultPatterns).
346 logln("MSG pattern for parse: " + buffer);
425 /* When the default locale is tr, make sure that the pattern can still be parsed. */
672 UnicodeString pattern ,Locale locale ,UErrorCode &status , char* errMsg)
675 MessageFormat* msgFmt = new MessageFormat(pattern, locale, status);
689 //French Pattern
693 //Create the MessageFormat with simple French pattern
712 //Quoted French Pattern
715 //Create the MessageFormat with Quoted French pattern
734 //English Pattern
737 //Create the MessageFormat with English pattern
760 //Create the MessageFormat with Select Format with embedded number format (nested pattern)
782 //Create the MessageFormat with Plural format with embedded select format(nested pattern)
1467 const UnicodeString pattern =
1474 MessageFormat msg(pattern, ec);
1549 logln((UnicodeString)"Testing format pattern: '" + formats[i] + "'");
1577 UnicodeString TestMessageFormat::GetPatternAndSkipSyntax(const MessagePattern& pattern) {
1578 UnicodeString us(pattern.getPatternString());
1579 int count = pattern.countParts();
1581 const MessagePattern::Part& part = pattern.getPart(--i);
1603 // DOUBLE_OPTIONAL pattern
1604 // DOUBLE_REQUIRED pattern (empty=same as DOUBLE_OPTIONAL)
1632 // The JDK performs only one apostrophe-quoting pass on this pattern.
1633 UnicodeString pattern = "ab{0,choice,0#1'2''3'''4''''.}yz";
1637 compMsg.applyPattern(pattern, UMSGPAT_APOS_DOUBLE_REQUIRED, NULL, ec);
1643 icuMsg.applyPattern(pattern, UMSGPAT_APOS_DOUBLE_OPTIONAL, NULL, ec);
1662 pattern = "ab{0,choice,0#1'2''3'''4''''.{0,number,'#x'}}yz";
1663 compMsg.applyPattern(pattern, ec);
1664 icuMsg.applyPattern(pattern, ec);
1692 const char* patterns[] = { // pattern, expected pattern
1788 errln("FAIL: Should work to setFormat(name, ...) regardless of pattern.");
1793 errln("FAIL: Should work to get format names enumeration regardless of pattern.");