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 boolean isAudioType(String mime) {
    return (mime != null) && (mime.toLowerCase().startsWith("audio/"));
}

From source file:Main.java

public static boolean isAndroid(String paramString) {
    paramString = paramString.toLowerCase();
    return (paramString.contains("dalvik")) || (paramString.contains("lemur"));
}

From source file:Main.java

public static boolean isImageType(String mime) {
    return (mime != null) && (mime.toLowerCase().startsWith("image/"));
}

From source file:Main.java

public static String recordTypeNumeric1Unit(String name) {
    return recordTypePrefix + name.toLowerCase() + "_numeric_1_unit";
}

From source file:Main.java

public static String recordTypeNumeric2Unit(String name) {
    return recordTypePrefix + name.toLowerCase() + "_numeric_2_unit";
}

From source file:Main.java

public static String recordTypeNumeric2Title(String name) {
    return recordTypePrefix + name.toLowerCase() + "_numeric_2_title";
}

From source file:Main.java

/**
 * @param toCheck/*from  ww w.jav  a2  s  . c  om*/
 * @return
 */
public static boolean isValidAtom(String toCheck) {
    String lowerCase = toCheck.toLowerCase();
    return !toCheck.contains(" ") && !toCheck.contains(",") && toCheck.equals(lowerCase);
}

From source file:Main.java

public static String sanitizeUserInput(String usrInput) {
    String lower = usrInput.toLowerCase();
    if (lower.replaceAll("[^a-z]", "").isEmpty()) {
        return "";
    }//from w w w  .j av a 2 s  .c om
    String alphabetic = lower.replaceAll("[^a-z ]", "");
    return alphabetic.replaceAll("[ ]", "+");
}

From source file:Main.java

/**
 * @param str/* w w  w.j a  v  a 2 s . co  m*/
 * @return the string in lower case
 */
public static synchronized String lowerCase(String str) {
    return str.toLowerCase();
}

From source file:Main.java

public static String getMenuSectionImageUri(String menuItem) {
    menuItem = menuItem.toLowerCase();
    menuItem = menuItem.replace(" ", "_");
    if (menuImages != null && !menuImages.isEmpty() && menuImages.containsKey(menuItem)) {
        return menuImages.get(menuItem);
    }/*from www.  ja v  a2 s.c  o m*/
    return "";
}