Example usage for org.apache.commons.lang3 StringUtils lowerCase

List of usage examples for org.apache.commons.lang3 StringUtils lowerCase

Introduction

In this page you can find the example usage for org.apache.commons.lang3 StringUtils lowerCase.

Prototype

public static String lowerCase(final String str, final Locale locale) 

Source Link

Document

Converts a String to lower case as per String#toLowerCase(Locale) .

A null input String returns null .

 StringUtils.lowerCase(null, Locale.ENGLISH)  = null StringUtils.lowerCase("", Locale.ENGLISH)    = "" StringUtils.lowerCase("aBc", Locale.ENGLISH) = "abc" 

Usage

From source file:org.trnltk.model.letter.TurkishAlphabet.java

public static String uncapitalize(String str) {
    if (StringUtils.isEmpty(str))
        return str;

    final char c = str.charAt(0);
    final char upperChar = StringUtils.lowerCase(String.valueOf(c), Constants.TURKISH_LOCALE).charAt(0);
    return String.valueOf(upperChar) + str.substring(1);
}