Android Utililty Methods String Camel Case

List of utility methods to do String Camel Case

Description

The list of methods to do String Camel Case are organized into topic(s).

Method

Stringcamelify(String original)
camelify
if (original == null)
    return "";
StringBuilder builder = new StringBuilder();
Pattern p = Pattern.compile("[a-zA-Z0-9]+");
Matcher m = p.matcher(original);
String word;
while (m.find()) {
    word = m.group();
...
Stringdecamelize(final String s)
decamelize
if (s == null) {
    return null;
if (s.length() == 1) {
    return s.toUpperCase();
StringBuffer buf = new StringBuffer(40);
int pos = 0;
...
Stringsnakify(String original)
snakify
if (original == null || original.length() == 0)
    return "";
StringBuilder builder = new StringBuilder();
Pattern p = Pattern.compile("[A-Z][a-z0-9]+");
Matcher m = p.matcher(original);
String word;
while (m.find()) {
    word = m.group();
...