Java org.apache.commons.lang WordUtils fields, constructors, methods, implement or subclass

Example usage for Java org.apache.commons.lang WordUtils fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for org.apache.commons.lang WordUtils.

The text is from its open source code.

Method

Stringabbreviate(String str, int lower, int upper, String appendToEnd)
Abbreviates a string nicely.
Stringcapitalize(String str)

Capitalizes all the whitespace separated words in a String.

Stringcapitalize(String str, char[] delimiters)

Capitalizes all the delimiter separated words in a String.

StringcapitalizeFully(String str)

Converts all the whitespace separated words in a String into capitalized words, that is each word is made up of a titlecase character and then a series of lowercase characters.

StringcapitalizeFully(String str, char[] delimiters)

Converts all the delimiter separated words in a String into capitalized words, that is each word is made up of a titlecase character and then a series of lowercase characters.

Stringinitials(String str, char[] delimiters)

Extracts the initial letters from each word in the String.

The first letter of the string and all first letters after the defined delimiters are returned as a new string.

Stringinitials(String str)

Extracts the initial letters from each word in the String.

The first letter of the string and all first letters after whitespace are returned as a new string.

StringswapCase(String str)

Swaps the case of a String using a word based algorithm.

  • Upper case character converts to Lower case
  • Title case character converts to Lower case
  • Lower case character after Whitespace or at start converts to Title case
  • Other Lower case character converts to Upper case

Whitespace is defined by Character#isWhitespace(char) .

Stringuncapitalize(String str)

Uncapitalizes all the whitespace separated words in a String.