MCPcopy Index your code
hub / github.com/antlr/codebuff / format

Method format

output/java8/1.4.12/ST.java:577–579  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

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");

Callers 11

toStringMethod · 0.45
toStringMethod · 0.45
toStringMethod · 0.45
getMethod · 0.45
stringsMethod · 0.45
sourceMapMethod · 0.45
toStringMethod · 0.45
toStringMethod · 0.45
traceMethod · 0.45
toStringMethod · 0.45

Calls 2

addMethod · 0.95
renderMethod · 0.95

Tested by

no test coverage detected