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

Method format

output/java8/1.4.17/ST.java:584–586  ·  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

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

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