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

Method getPrefix

output/java/1.4.13/Misc.java:127–133  ·  view source on GitHub ↗
(String name)

Source from the content-addressed store, hash-verified

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

Callers 2

loadMethod · 0.95
CompilationStateMethod · 0.95

Calls 1

getParentMethod · 0.95

Tested by

no test coverage detected