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

Method getUnMangledTemplateName

output/java8/1.4.13/STGroup.java:469–473  ·  view source on GitHub ↗

Return "t.foo" from "/region__/t__foo"

(String mangledName)

Source from the content-addressed store, hash-verified

467 /** Return {@code "t.foo"} from {@code "/region__/t__foo"} */
468
469 public static String getUnMangledTemplateName(String mangledName) {
470 String t = mangledName.substring("/region__".length(), mangledName.lastIndexOf("__"));
471 String r = mangledName.substring(mangledName.lastIndexOf("__")+2, mangledName.length());
472 return t+'.'+r;
473 }
474
475 /** Define a map for this group.
476 * <p>

Callers

nothing calls this directly

Calls 2

lengthMethod · 0.45
lastIndexOfMethod · 0.45

Tested by

no test coverage detected