MCPcopy Create free account
hub / github.com/antlr/codebuff / getUnMangledTemplateName

Method getUnMangledTemplateName

output/java/1.4.19/STGroup.java:494–498  ·  view source on GitHub ↗

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

(String mangledName)

Source from the content-addressed store, hash-verified

492 /** Return {@code "t.foo"} from {@code "/region__/t__foo"} */
493
494 public static String getUnMangledTemplateName(String mangledName) {
495 String t = mangledName.substring("/region__".length(), mangledName.lastIndexOf("__"));
496 String r = mangledName.substring(mangledName.lastIndexOf("__")+2, mangledName.length());
497 return t+'.'+r;
498 }
499
500 /** Define a map for this group.
501 * <p>

Callers 2

toStringMethod · 0.95
rawDefineTemplateMethod · 0.95

Calls 2

lengthMethod · 0.45
lastIndexOfMethod · 0.45

Tested by

no test coverage detected