ST.format("name, phone | <name>:<phone>", n, p); ST.format("<%1>:<%2>", n, p); ST.format("<name>:<phone>", "name", x, "phone", y);
(String template, Object ... attributes)
| 575 | */ |
| 576 | |
| 577 | public static String format(String template, Object ... attributes) { |
| 578 | return format(STWriter.NO_WRAP, template, attributes); |
| 579 | } |
| 580 | |
| 581 | public static String format(int lineWidth, String template, Object ... attributes) { |
| 582 | template = template.replaceAll("%([0-9]+)", "arg$1"); |