Example usage for java.lang String toLowerCase

List of usage examples for java.lang String toLowerCase

Introduction

In this page you can find the example usage for java.lang String toLowerCase.

Prototype

public String toLowerCase() 

Source Link

Document

Converts all of the characters in this String to lower case using the rules of the default locale.

Usage

From source file:Main.java

public static int getBucketId(String path) {
    return path.toLowerCase().hashCode();
}

From source file:Main.java

public static boolean isImageUri(String s1) {
    s1 = s1.toLowerCase();
    return s1.endsWith(".png") || s1.endsWith(".jpg") || s1.endsWith(".jpeg") || s1.endsWith(".bmp")
            || s1.endsWith(".gif");
}

From source file:Main.java

public static String[] toByteStringArray(String value) {
    return value.toLowerCase().replace("0x", " ").replace(",", " ").trim().split(" +");
}

From source file:Main.java

public static String getRubyNameVariable(String column) {
    return column.toLowerCase();
}

From source file:Main.java

public static boolean isRelativeCmUnit(String unit) {
    return unit.toLowerCase().equals(relativeCmUnit);
}

From source file:Main.java

public static String toLowerCase(String str) {
    return str.toLowerCase();
}

From source file:Main.java

public static int getDrawableResourceId(Context context, String name) {
    name = name.toLowerCase().replace(' ', '_');
    return context.getResources().getIdentifier(name, "drawable", context.getPackageName());
}

From source file:Main.java

public static boolean isXml(String file) {
    if (file.toLowerCase().endsWith("xml")) {
        return true;
    } else {/*from   www .j  ava 2 s  .  co m*/
        return false;
    }
}

From source file:Main.java

public static boolean isInvalidVideoFile(String filePath) {
    return filePath.toLowerCase().endsWith(".3gp") || filePath.toLowerCase().endsWith(".mp4");
}

From source file:Main.java

public static boolean isXml(String paramString) {
    return paramString.toLowerCase().endsWith("xml");
}