Example usage for org.apache.commons.lang3.text WordUtils uncapitalize

List of usage examples for org.apache.commons.lang3.text WordUtils uncapitalize

Introduction

In this page you can find the example usage for org.apache.commons.lang3.text WordUtils uncapitalize.

Prototype

public static String uncapitalize(final String str, final char... delimiters) 

Source Link

Document

Uncapitalizes all the whitespace separated words in a String.

Usage

From source file:org.squashtest.tm.web.internal.helper.HyphenedStringHelper.java

/**
 * Convert a CamelCaseString to a hyphened-string
 * @param camelCase/*from w  w w.ja v  a  2s . co  m*/
 * @return
 */
public static String camelCaseToHyphened(String camelCase) {
    String[] tokens = StringUtils.splitByCharacterTypeCamelCase(camelCase);
    return WordUtils.uncapitalize(StringUtils.join(tokens, '-'), HYPHEN_ARRAY);
}