List of usage examples for java.lang String toLowerCase
public String toLowerCase()
From source file:Main.java
public static void openUrl(Context context, String url) { String urlLower = url.toLowerCase(); if (!urlLower.startsWith("http")) url = "http://" + url; Uri uri = Uri.parse(url);/* w ww . j a v a2 s. c o m*/ Intent i = new Intent(Intent.ACTION_VIEW, uri); context.startActivity(i); }
From source file:Main.java
public static String getVersion(int version, String ver) { NumberFormat formatter = new DecimalFormat("000"); String number = ver + "." + formatter.format(version); return number.toLowerCase(); }
From source file:com.pingcap.tikv.meta.CIStr.java
static CIStr newCIStr(String str) { return new CIStr(str, str.toLowerCase()); }
From source file:Main.java
/** * Normalizes a URN by trimming whitespace, converting to lowercase, removing the prefix, * and all labels such as <i>partType=</i>. * /*from ww w . j a v a 2s .c o m*/ * @param urn the URN to normalize * @return the normalized URN */ static public String normalizeURN(String urn) { urn = urn.trim(); urn = urn.toLowerCase(); urn = urn.replaceAll(TOPO_ID_PREFIX + TOPO_ID_SEPARATOR, ""); for (String part : TOPO_ID_PARTS) { urn = urn.replaceAll(part + TOPO_ID_LABEL_SEPARATOR, ""); } return urn; }
From source file:Main.java
/** * Fix property key.//from www . java2 s. co m * * @param name * the name * @return the string */ public static String fixPropertyKey(final String name) { return name.toLowerCase().replaceAll("_", "-"); }
From source file:ve.gob.mercal.app.models.listaNodo.java
public static boolean existeCampo(String json, String palabra) { return json.toLowerCase().contains(palabra.toLowerCase()); }
From source file:Main.java
public static boolean isStringNotEmpty(String str) { if (null != str && !"".equals(str) && !"null".equals(str.toLowerCase())) { return true; } else {/*from w w w . j a v a 2 s . co m*/ return false; } }
From source file:Main.java
protected static void log(String table, String methodAndArgs, Object result) { Log.d(LOG_TAG, table.toLowerCase() + "." + methodAndArgs + "--->" + result); }
From source file:Main.java
private static boolean exists(String s) { return stopwords.contains(s.toLowerCase()); }
From source file:Main.java
private static String getResourceName(String resourceName) { String rn = new String(resourceName.substring(0, 1).toLowerCase() + resourceName.substring(1)); rn = rn.replaceAll(" ", ""); for (int i = 'A'; i <= 'Z'; i++) { char ch = (char) i; String s = new String(ch + ""); rn = rn.replaceAll(s, "_" + s.toLowerCase()); }//from w w w . j av a 2 s . c o m return rn; }