Lines Matching defs:mf
455 MessageFormat *mf = new MessageFormat(originalPattern, status);
459 mf->applyPattern(illegalPattern, status);
463 if (!originalPattern.equals(mf.toPattern()))
464 errln("pattern after: \"" + mf.toPattern() + "\"");
466 delete mf;
481 MessageFormat *mf = new MessageFormat("", status);
486 mf->applyPattern(pattern, status);
487 failure(status, "mf->applyPattern", TRUE);
492 Formattable *array = mf->parse(UnicodeString(""), pp, count);
518 delete mf;
529 MessageFormat *mf = new MessageFormat("<{0}>", status);
538 logln("pattern: \"" + mf->toPattern(pat) + "\"");
541 logln("\"" + mf->format(objs1, 0, res, pos, status) + "\"");
542 failure(status, "mf->format");
544 logln("\"" + mf->format(objs2, 0, res, FieldPosition(FieldPosition::DONT_CARE), status) + "\"");
545 failure(status, "mf->format");
547 logln("\"" + mf->format(objs3, 0, res, FieldPosition(FieldPosition::DONT_CARE), status) + "\"");
548 failure(status, "mf->format");*/
553 delete mf;
563 MessageFormat *mf = new MessageFormat(originalPattern, status);
567 logln("pattern before: \"" + mf->toPattern(pat) + "\"");
570 mf->applyPattern(illegalPattern, status);
574 if (!originalPattern.equals(mf.toPattern()))
575 errln("pattern after: \"" + mf.toPattern() + "\"");
577 delete mf;
697 MessageFormat *mf = new MessageFormat("", status);
706 mf->applyPattern(prefix + pattern, status);
707 failure(status, "mf->applyPattern");
709 //Object[] objs = mf.parse(formatted, new ParsePosition(0));
712 objs = mf->parse(formatted, pp, count);
714 logln(UnicodeString("") + i + ". pattern :\"" + mf->toPattern(pat) + "\"");
729 delete mf;
738 MessageFormat *mf = new MessageFormat("{0}, {0}, {0}", status);
741 //Object[] objs = mf.parse(forParsing, new ParsePosition(0));
744 Formattable *objs = mf->parse(forParsing, pp, count);
746 logln("pattern: \"" + mf->toPattern(pat) + "\"");
751 mf->applyPattern("{0,number,#.##}, {0,number,#.#}", status);
752 failure(status, "mf->applyPattern", possibleDataError);
757 result = mf->format( oldobjs, 1, result, pos, status );
758 failure(status, "mf->format", possibleDataError);
760 logln("pattern: \"" + mf->toPattern(pat) + "\"");
765 //Object[] newobjs = mf.parse(result, new ParsePosition(0));
768 Formattable *newobjs = mf->parse(result, pp, count1);
779 delete mf;
828 MessageFormat *mf = new MessageFormat("pattern", status);
836 logln("pattern: \"" + mf->toPattern(pat) + "\"");
839 //Object[] objs = mf.parse(texts[i], pp);
841 Formattable *objs = mf->parse(texts[i], pp, count);
852 delete mf;
867 MessageFormat *mf = new MessageFormat(pat, status);
883 //out = mf->format(new Object[]{new Integer(i)});
888 out = mf->format(objs, 1, out, pos, status);
889 if (!failure(status, "mf->format", TRUE)) {
903 delete mf;