Lines Matching refs:result

115  * with the pound-sign quoted, with a result such as: {@code
142 * or the result array returned by the {@code parse} methods.
234 * String result = MessageFormat.format(
304 * will be the final result of the parsing. For example,
308 * String result = mf.format( objs );
309 * // result now equals "3.14, 3.1"
311 * objs = mf.parse(result, new ParsePosition(0));
323 * // result now equals {new String("z")}
524 StringBuilder result = new StringBuilder();
526 copyAndFixQuotes(pattern, lastOffset, offsets[i], result);
528 result.append('{').append(argumentNumbers[i]);
534 result.append(",number");
536 result.append(",number,currency");
538 result.append(",number,percent");
540 result.append(",number,integer");
543 result.append(",number,").append(((DecimalFormat)fmt).toPattern());
545 result.append(",choice,").append(((ChoiceFormat)fmt).toPattern());
556 result.append(",date");
562 result.append(",time");
568 result.append(",date,").append(((SimpleDateFormat)fmt).toPattern());
573 result.append(',').append(DATE_TIME_MODIFIER_KEYWORDS[index]);
576 //result.append(", unknown");
578 result.append('}');
580 copyAndFixQuotes(pattern, lastOffset, pattern.length(), result);
581 return result.toString();
592 * to the <code>format</code> methods or the result array returned
632 * the <code>format</code> methods or the result array returned by
654 * to the <code>format</code> methods or the result array returned
703 * to the <code>format</code> methods or the result array returned
740 * the <code>format</code> methods or the result array returned by
809 * @param result where text is appended.
816 public final StringBuffer format(Object[] arguments, StringBuffer result,
819 return subformat(arguments, result, pos, null);
846 * <code>{@link #format(java.lang.Object[], java.lang.StringBuffer, java.text.FieldPosition) format}((Object[]) arguments, result, pos)</code>
850 * @param result where text is appended.
857 public final StringBuffer format(Object arguments, StringBuffer result,
860 return subformat((Object[]) arguments, result, pos, null);
899 StringBuffer result = new StringBuffer();
906 subformat((Object[]) arguments, result, null, iterators);
930 * When the result is parsed, it will return {"a", "b,c"}.
1033 Object[] result = parse(source, pos);
1037 return result;
1226 private StringBuffer subformat(Object[] arguments, StringBuffer result,
1231 int last = result.length();
1233 result.append(pattern.substring(lastOffset, offsets[i]));
1237 result.append('{').append(argumentNumber).append('}');
1243 result.append('\uFFFD');
1282 if (last != result.length()) {
1284 createAttributedCharacterIterator(result.substring
1286 last = result.length();
1292 append(result, subIterator);
1293 if (last != result.length()) {
1298 last = result.length();
1303 result.append(arg);
1308 last = result.length();
1315 last = result.length();
1316 result.append(arg);
1320 fp.setEndIndex(result.length());
1322 last = result.length();
1326 result.append(pattern.substring(lastOffset, pattern.length()));
1327 if (characterIterators != null && last != result.length()) {
1329 result.substring(last)));
1331 return result;
1336 * <code>iterator</code> to the StringBuffer <code>result</code>.
1338 private void append(StringBuffer result, CharacterIterator iterator) {
1342 result.append(iterator.first());
1344 result.append(aChar);