Lines Matching refs:pattern
174 // {sfb} use double format in pattern, so result will match (not strictly necessary)
175 const UnicodeString pattern = "There {0,choice,0#are no files|1#is one file|1<are {0, number} files} on disk {1}. ";
176 logln("The input pattern : " + pattern);
177 MessageFormat *fmt = new MessageFormat(pattern, status);
179 dataerrln("MessageFormat pattern creation failed. - %s", u_errorName(status));
182 logln("The output pattern is : " + fmt->toPattern(result));
183 if (pattern != result) {
267 // ICU 4.8 returns the original pattern (testCases),
268 // rather than toPattern() reconstituting a new, equivalent pattern string (testResultPatterns).
306 // ICU 4.8 returns the original pattern (testCases),
307 // rather than toPattern() reconstituting a new, equivalent pattern string (testResultPatterns).
344 logln("MSG pattern for parse: " + buffer);
423 /* When the default locale is tr, make sure that the pattern can still be parsed. */
670 UnicodeString pattern ,Locale locale ,UErrorCode &status , char* errMsg)
673 MessageFormat* msgFmt = new MessageFormat(pattern, locale, status);
687 //French Pattern
691 //Create the MessageFormat with simple French pattern
710 //Quoted French Pattern
713 //Create the MessageFormat with Quoted French pattern
732 //English Pattern
735 //Create the MessageFormat with English pattern
757 //Create the MessageFormat with Select Format with embedded number format (nested pattern)
780 //Create the MessageFormat with Plural format with embedded select format(nested pattern)
1464 const UnicodeString pattern =
1471 MessageFormat msg(pattern, ec);
1546 logln((UnicodeString)"Testing format pattern: '" + formats[i] + "'");
1576 UnicodeString TestMessageFormat::GetPatternAndSkipSyntax(const MessagePattern& pattern) {
1577 UnicodeString us(pattern.getPatternString());
1578 int count = pattern.countParts();
1580 const MessagePattern::Part& part = pattern.getPart(--i);
1602 // DOUBLE_OPTIONAL pattern
1603 // DOUBLE_REQUIRED pattern (empty=same as DOUBLE_OPTIONAL)
1631 // The JDK performs only one apostrophe-quoting pass on this pattern.
1632 UnicodeString pattern = "ab{0,choice,0#1'2''3'''4''''.}yz";
1636 compMsg.applyPattern(pattern, UMSGPAT_APOS_DOUBLE_REQUIRED, NULL, ec);
1642 icuMsg.applyPattern(pattern, UMSGPAT_APOS_DOUBLE_OPTIONAL, NULL, ec);
1661 pattern = "ab{0,choice,0#1'2''3'''4''''.{0,number,'#x'}}yz";
1662 compMsg.applyPattern(pattern, ec);
1663 icuMsg.applyPattern(pattern, ec);
1691 const char* patterns[] = { // pattern, expected pattern
1787 errln("FAIL: Should work to setFormat(name, ...) regardless of pattern.");
1792 errln("FAIL: Should work to get format names enumeration regardless of pattern.");