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)
| 578 | */ |
| 579 | |
| 580 | public static String format(String template,Object ... attributes) { |
| 581 | return format(STWriter.NO_WRAP, template, attributes); |
| 582 | } |
| 583 | |
| 584 | public static String format(int lineWidth, String template,Object ... attributes) { |
| 585 | template = template.replaceAll("%([0-9]+)", "arg$1"); |