public final class CaseMgr extends Object
The performance of the methods found in String and Character is better, but these methods work both in java 1.0 and 1.1. If it is desirable, either to gain a slight performance increase or to accomodate application specific modifications to the definitions of upper, lower, and title case then it should be a straightforward task to substitute your own methods for these.
Constructor and Description |
---|
CaseMgr() |
Modifier and Type | Method and Description |
---|---|
static boolean |
regionMatches(String s1,
boolean ign,
int i1,
String s2,
int i2,
int i3)
Duplicates the regionMatches routine of String -- but
makes use of the definitions of upper, lower, and title
case in this class when ignoreCase is set.
|
static boolean |
regionMatches(String s1,
boolean ign,
int i1,
StringLike s2,
int i2,
int i3)
Duplicates the regionMatches routine of String -- but
makes use of the definitions of upper, lower, and title
case in this class when ignoreCase is set.
|
static boolean |
regionMatches(StringLike s1,
boolean ign,
int i1,
String s2,
int i2,
int i3)
Duplicates the regionMatches routine of String -- but
makes use of the definitions of upper, lower, and title
case in this class when ignoreCase is set.
|
static boolean |
regionMatches(StringLike s1,
boolean ign,
int i1,
StringLike s2,
int i2,
int i3)
Duplicates the regionMatches routine of String -- but
makes use of the definitions of upper, lower, and title
case in this class when ignoreCase is set.
|
static char |
toLowerCase(char c)
Convert a character to lower case.
|
static String |
toLowerCase(String s)
Convert a String to lower case.
|
static char |
toTitleCase(char c)
Convert a character to title case.
|
static String |
toTitleCase(String s)
Convert a String to title case.
|
static char |
toUpperCase(char c)
Convert a character to upper case .
|
static String |
toUpperCase(String s)
Convert a String to upper case.
|
public static char toUpperCase(char c)
public static char toLowerCase(char c)
public static char toTitleCase(char c)
public static boolean regionMatches(StringLike s1, boolean ign, int i1, StringLike s2, int i2, int i3)
public static boolean regionMatches(String s1, boolean ign, int i1, StringLike s2, int i2, int i3)
public static boolean regionMatches(StringLike s1, boolean ign, int i1, String s2, int i2, int i3)