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

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

Introduction

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

The text is from its open source code.

Constructor

WordUtils()

WordUtils instances should NOT be constructed in standard programming.

Method

Stringcapitalize(final String str)

Capitalizes all the whitespace separated words in a String.

Stringcapitalize(final String str, final char... delimiters)

Capitalizes all the delimiter separated words in a String.

StringcapitalizeFully(final 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, final 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(final String str, final 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(final 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.

Stringuncapitalize(final String str)

Uncapitalizes all the whitespace separated words in a String.

Stringuncapitalize(final String str, final char... delimiters)

Uncapitalizes all the whitespace separated words in a String.

Stringwrap(final String str, final int wrapLength)

Wraps a single line of text, identifying words by ' '.

New lines will be separated by the system property line separator.

Stringwrap(final String str, int wrapLength, String newLineStr, final boolean wrapLongWords)

Wraps a single line of text, identifying words by ' '.

Leading spaces on a new line are stripped.