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