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

Method getPrefix

output/java8/1.4.13/Misc.java:125–131  ·  view source on GitHub ↗
(String name)

Source from the content-addressed store, hash-verified

123 }
124
125 public static String getPrefix(String name) {
126 if ( name==null ) return "/";
127 String parent = getParent(name);
128 String prefix = parent;
129 if ( !parent.endsWith("/") ) prefix += '/';
130 return prefix;
131 }
132
133 public static String replaceEscapes(String s) {
134 s = s.replaceAll("\n", "\\\\n");

Callers 2

loadMethod · 0.95
CompilationStateMethod · 0.95

Calls 1

getParentMethod · 0.95

Tested by

no test coverage detected