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

Method getFileNameNoSuffix

output/java8/1.4.12/Misc.java:103–107  ·  view source on GitHub ↗
(String f)

Source from the content-addressed store, hash-verified

101 }
102
103 public static String getFileNameNoSuffix(String f) {
104 if ( f==null ) return null;
105 f = getFileName(f);
106 return f.substring(0, f.lastIndexOf('.'));
107 }
108
109 public static String getFileName(String fullFileName) {
110 if ( fullFileName==null ) return null;

Callers 3

loadTemplateFileMethod · 0.95
getNameMethod · 0.95
loadTemplateFileMethod · 0.95

Calls 2

getFileNameMethod · 0.95
lastIndexOfMethod · 0.45

Tested by

no test coverage detected