src/com/esotericsoftware/scar/Scar.java
static public String fileWithoutExtension (String file) {
		if (file == null) throw new IllegalArgumentException("fileName cannot be null.");

		int commaIndex = file.indexOf('.');
		if (commaIndex == -1) commaIndex = file.length();
		int slashIndex = file.replace('\\', '/').lastIndexOf('/');
		if (slashIndex == -1)
			slashIndex = 0;
		else
			slashIndex++;
		return file.substring(slashIndex, commaIndex);
	}
/** Returns only the filename portion of the specified path, without the extension, if any. */
Returns only the filename portion of the specified path, without the extension, if any.
Returns only the filename portion of the specified path without the extension if any .
static public String fileWithoutExtension (String file) {
		if (file == null) throw new IllegalArgumentException("fileName cannot be null.");
		int commaIndex = file.indexOf('.');
		if (commaIndex == -1) commaIndex = file.length();
		int slashIndex = file.replace('\\', '/').lastIndexOf('/');
		if (slashIndex == -1)
			slashIndex = 0;
		else
			slashIndex++;
		return file.substring(slashIndex, commaIndex);
	}
static public String fileWithoutExtension ( String file ) { if ( file == null ) throw new IllegalArgumentException ( "fileName cannot be null." ) ; int commaIndex = file . indexOf ( '.' ) ; if ( commaIndex == - 1 ) commaIndex = file . length ( ) ; int slashIndex = file . replace ( '\\' , '/' ) . lastIndexOf ( '/' ) ; if ( slashIndex == - 1 ) slashIndex = 0 ; else slashIndex ++ ; return file . substring ( slashIndex , commaIndex ) ; }
Returns only the filename portion of the specified path, without the extension, if any.
Returns only the filename portion of the specified path without the extension if any .