List of utility methods to do String Decapitalize
String | decapitalize(String word) Decapitalizes a word - only the first character is converted to lower case. return word.substring(0, 1).toLowerCase() + word.substring(1);
|
String | decapitalizeAsJavaBeans(String name) decapitalize As Java Beans if (isEmpty(name)) { return name; char[] chars = name.toCharArray(); if (chars.length >= 2 && Character.isUpperCase(chars[0]) && Character.isUpperCase(chars[1])) { return name; chars[0] = Character.toLowerCase(chars[0]); ... |
String | decapitalizeFirstCharOfString(final String input) Decapitalizes first char of an input string. if (input == null || input.length() == 0) { return ""; } else if (input.length() == 1) { return input.toLowerCase(); } else { return input.substring(0, 1).toLowerCase() + input.substring(1); |
String | decapitalizeFirstLetter(final String str) Utility method decapitalizes the first letter of string, used to generate variable names from type name if (str == null || str.length() <= 0) { return str; final char[] chars = str.toCharArray(); chars[0] = Character.toLowerCase(chars[0]); return new String(chars); |
String | deCapitalizeFirstLetter(String data) de Capitalize First Letter return data.substring(0, 1).toLowerCase() + data.substring(1);
|
String | decapitalizeName(String name) Decapitalize a name. if (name.length() == 0) { return name; } else { String lowerName = name.toLowerCase(); int i; for (i = 0; i < name.length(); i++) { if (name.charAt(i) == lowerName.charAt(i)) { break; ... |
String | decapitalizePropertyName(String propertyName) decapitalize Property Name if (propertyName.isEmpty() || startsWithSeveralUpperCaseLetters(propertyName)) { return propertyName; } else { return propertyName.substring(0, 1).toLowerCase() + propertyName.substring(1); |
String | decapitalizeString(String string) Returns the string defined by parameter string decapitalized (the first letter in lowercase).
if (string.length() == 0) return string; String firstLetter = string.substring(0, 1); String theRest = string.substring(1, string.length()); return firstLetter.toLowerCase() + theRest; |
String | decapitalizeTheFirstLetter(String input) decapitalize The First Letter String result; if (input.length() > 0) { result = input.substring(0, 1).toLowerCase() + input.substring(1); } else { result = input; return result; |