Lines Matching defs:pattern

73  * Null exception when formatting pattern with MessageFormat
77 UnicodeString pattern [] = {
93 //Apply pattern with param and print the result
94 messageFormatter->applyPattern(pattern[1], status);
108 //Apply pattern without param and print the result
109 messageFormatter->applyPattern(pattern[0], status);
133 //If we use pattern[1] for the message with param,
135 //If we use pattern[2] for the message with param,
138 //in applyPattern() when the pattern does not
151 * the original pattern string, rather than reconstituting a new (equivalent) one.
152 * This trivially eliminates issues with rounding or any other pattern string differences.
188 logln("Apply with pattern : " + pattern1);
258 logln("Apply with pattern : " + pattern2);
428 format1 = new MessageFormat("pattern{0}");
453 UnicodeString originalPattern("initial pattern");
461 errln("illegal pattern: \"" + illegalPattern + "\"");
464 errln("pattern after: \"" + mf.toPattern() + "\"");
485 UnicodeString pattern = patterns[i];
486 mf->applyPattern(pattern, status);
493 logln("pattern: \"" + pattern + "\"");
513 errln("pattern: \"" + pattern + "\"");
538 logln("pattern: \"" + mf->toPattern(pat) + "\"");
561 UnicodeString originalPattern("initial pattern");
567 logln("pattern before: \"" + mf->toPattern(pat) + "\"");
568 logln("illegal pattern: \"" + illegalPattern + "\"");
572 errln("Should have thrown IllegalArgumentException for pattern : " + illegalPattern);
575 errln("pattern after: \"" + mf.toPattern() + "\"");
581 * ChoiceFormat is silent about the pattern usage in javadoc.
638 UnicodeString pattern("-");
639 pattern += (UChar) 0x221E;
640 pattern += "<are negative|0<are no or fraction|1#is one|1<is 1+|";
641 pattern += (UChar) 0x221E;
642 pattern += "<are many.";
644 ChoiceFormat *fmt = new ChoiceFormat(pattern, status);
647 if (fmt->toPattern(pat) != pattern) {
649 errln( (UnicodeString) "Expected Pattern : " + pattern);
699 UnicodeString pattern("{0,choice,1#YES|2#NO}");
706 mf->applyPattern(prefix + pattern, status);
714 logln(UnicodeString("") + i + ". pattern :\"" + mf->toPattern(pat) + "\"");
746 logln("pattern: \"" + mf->toPattern(pat) + "\"");
760 logln("pattern: \"" + mf->toPattern(pat) + "\"");
828 MessageFormat *mf = new MessageFormat("pattern", status);
831 (UnicodeString)"pattern",
836 logln("pattern: \"" + mf->toPattern(pat) + "\"");
857 * MessageFormat handles single quotes in pattern wrong.
911 * pattern characters '|', '#', '<', and '\u2264'. Two quotes in a row