MCPcopy Create free account
hub / github.com/Whiley/WhileyCompiler / getSuffix

Method getSuffix

src/main/java/wyc/Compiler.java:226–233  ·  view source on GitHub ↗

Extract the suffix from a given filename. For example, given "std-0.3.2.zip" we return "zip". @param t @return

(String t)

Source from the content-addressed store, hash-verified

224 * @return
225 */
226 private static String getSuffix(String t) {
227 int i = t.lastIndexOf('.');
228 if (i >= 0) {
229 return t.substring(i + 1);
230 } else {
231 return null;
232 }
233 }
234
235 /**
236 * Read a Whiley source file from the file system.

Callers 2

extractDependenciesMethod · 0.95
extractFromZipMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected