getBaseName static method
Implementation
static String getBaseName(String fullName) {
var idx = fullName.indexOf('.');
if (idx > 0) {
return fullName.substring(0, idx);
} else {
if (idx == 0) {
return '';
} else {
return fullName;
}
}
}