List of utility methods to do String Lower Case
String | toLowerCase(String text) to upper case like xxx_xxx_xxx if (text != null && text.length() > 0) { StringBuilder sb = new StringBuilder(); for (int i = 0; i < text.length(); i++) { char c = text.charAt(i); if (i != 0 && Character.isUpperCase(c)) { sb.append("_"); sb.append(Character.toLowerCase(c)); ... |
String | toLowerCase(String text) to Lower Case if (null != text) { return text.toLowerCase(); return text; |
String | toLowerCase(String value) Converts the given value to lower case. if (value == null) { return null; return value.trim().toLowerCase(); |
String | toLowerCase(String value) to Lower Case return value != null ? value.toLowerCase() : value;
|
String[] | toLowerCase(String[] strArr) to Lower Case if (strArr == null) return null; String[] res = new String[strArr.length]; for (int i = 0; i < strArr.length; i++) { res[i] = strArr[i].toLowerCase(); return res; |
StringBuffer | toLowerCase(StringBuffer buf) to Lower Case int len = buf.length(); for (int i = 0; i < len; i++) { char lc = buf.charAt(i); char uc = Character.toLowerCase(lc); if (lc != uc) { buf.setCharAt(i, uc); return buf; |
void | toLowerCase(StringBuffer buffer) Puts all chars in the buffer in lower case. final int N = buffer.length(); for (int i = 0; i < N; i++) { char c = buffer.charAt(i); if (Character.isUpperCase(c)) { c = Character.toLowerCase(c); buffer.setCharAt(i, c); |
String | toLowerCase0(String string) to Lower Case return Character.toLowerCase(string.charAt(0)) + string.substring(1);
|
String | toLowerCaseAscii(String s) Returns a string with all ASCII upper-case letters converted to lower-case. if (s == null) return null; int len = s.length(); char c = 0; boolean hasUpperCase = false; for (int i = 0; i < len; i++) { c = s.charAt(i); if (c >= 'A' && c <= 'Z') { ... |
String | toLowerCaseFirst(String str) to Lower Case First if (str == null) return null; if ("".equals(str)) return str; String first = String.valueOf(str.charAt(0)); str.replaceFirst(first, first.toLowerCase()); return str; |