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

Method getPrefix

output/java8/1.4.17/Misc.java:123–129  ·  view source on GitHub ↗
(String name)

Source from the content-addressed store, hash-verified

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

Callers 2

loadMethod · 0.95
CompilationStateMethod · 0.95

Calls 1

getParentMethod · 0.95

Tested by

no test coverage detected