package jetbrains.mps.build.plugin; /*Generated by MPS */ /*package*/ class Utils { public Utils() { } /*package*/ static String getExtensionWithDot(String fileName) { int index = fileName.lastIndexOf('.'); if (index >= 0) { if (fileName.indexOf('/', index) >= 0) { index = -1; } } return (index == -1 ? "" : fileName.substring(index)); } /*package*/ static String withoutExtension(String fileName) { int index = fileName.lastIndexOf('.'); if (index >= 0) { if (fileName.indexOf('/', index) >= 0) { index = -1; } } return (index == -1 ? fileName : fileName.substring(0, index)); } }