public class CaseChanger
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static int |
LOWER
Lowercase
|
static int |
UPPER
Uppercase
|
static int |
UPPER_EACH_FIRST
First letter of each word uppercase
|
static int |
UPPER_FIRST
First letter of string uppercase
|
| Constructor and Description |
|---|
CaseChanger() |
| Modifier and Type | Method and Description |
|---|---|
static java.lang.String[] |
changeCase(java.lang.String[] input,
int mode)
Changes the case of the specified strings.
|
static java.lang.String |
changeCase(java.lang.String input,
int mode)
Changes the case of the specified string
|
static java.lang.String |
changeCase(java.lang.String input,
int mode,
boolean skipSmallWords)
Changes the case of the specified string
|
static java.lang.String |
getModeName(int mode)
Gets the name of a case changing mode
|
static java.lang.String[] |
getModeNames()
Gets the names of all available case changing modes
|
static int |
getNumModes()
Gets the number of available case changing modes
|
public static final int LOWER
public static final int UPPER
public static final int UPPER_FIRST
public static final int UPPER_EACH_FIRST
public static java.lang.String getModeName(int mode)
mode - by default one of LOWER, UPPER, UPPER_FIRST or
UPPER_EACH_FIRSTpublic static java.lang.String[] getModeNames()
public static int getNumModes()
public static java.lang.String[] changeCase(java.lang.String[] input,
int mode)
changeCase(String input, int mode)changeCase(String input, int mode)public static java.lang.String changeCase(java.lang.String input,
int mode)
input - String to changemode - by default one of LOWER, UPPER, UPPER_FIRST or
UPPER_EACH_FIRSTpublic static java.lang.String changeCase(java.lang.String input,
int mode,
boolean skipSmallWords)
input - String to changemode - by default one of LOWER, UPPER, UPPER_FIRST or
UPPER_EACH_FIRSTskipSmallWords - In UPPER_EACH_FIRST mode, do not capitalize words like of, the, and,
unless at the start of the string.