* implementation is not creating extra strings.
*/
public final static boolean isPHPFileName(String name) {
- String extension = getFileExtension(name).toLowerCase();
+ String extension = getFileExtension(name);
if (extension==null) {
return false;
}
+ extension = extension.toLowerCase();
for (int i=0;i<PHP_EXTENSIONS.length;i++) {
if (extension.equals(PHP_EXTENSIONS[i])) {
return true;
* implementation is not creating extra strings.
*/
// public final static boolean isHTML_FileName(String name) {
-// String extension = getFileExtension(name).toLowerCase();
+// String extension = getFileExtension(name);
// if (extension==null) {
// return false;
// }
+// extension = extension.toLowerCase();
// for (int i=0;i<HTML_EXTENSIONS.length;i++) {
// if (extension.equals(HTML_EXTENSIONS[i])) {
// return true;
* implementation is not creating extra strings.
*/
// public final static boolean isTPL_FileName(String name) {
-// String extension = getFileExtension(name).toLowerCase();
+// String extension = getFileExtension(name);
// if (extension==null) {
// return false;
// }
+// extension = extension.toLowerCase();
// for (int i=0;i<SMARTY_EXTENSIONS.length;i++) {
// if (extension.equals(SMARTY_EXTENSIONS[i])) {
// return true;