public final class TLcdStringUtil
extends java.lang.Object
Constructor and Description |
---|
TLcdStringUtil() |
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
capitalizeFirstCharacter(java.lang.String aString)
Returns a string containing all characters of the given string, but the first character will be uppercase.
|
static boolean |
endsWithIgnoreCase(java.lang.String aString,
java.lang.String aSuffix)
Returns whether the given string starts with the given prefix,
ignoring the case.
|
static java.lang.String |
replacePrefixPreserveCase(java.lang.String aString,
int aPrefixLength,
java.lang.String aNewPrefix)
Returns the given string, with its prefix replaced by a new prefix,
preserving the case of the prefix.
|
static java.lang.String |
replaceSuffixPreserveCase(java.lang.String aString,
int aSuffixLength,
java.lang.String aNewSuffix)
Returns the given string, with its suffix replaced by a new suffix,
preserving the case of the suffix.
|
static boolean |
startsWithIgnoreCase(java.lang.String aString,
java.lang.String aPrefix)
Returns whether the given string starts with the given prefix,
ignoring the case.
|
static boolean |
startsWithIgnoreCase(java.lang.String aString,
java.lang.String aPrefix,
int aStringOffset)
Returns whether the given string starts with the given prefix,
beginning at a specified index, and ignoring the case.
|
static java.lang.String |
toMatchingCase(java.lang.String aString,
java.lang.String aCaseString)
Returns the given string, changing its case to match the case of the given
case string.
|
public static boolean startsWithIgnoreCase(java.lang.String aString, java.lang.String aPrefix)
String.startsWith(String)
public static boolean startsWithIgnoreCase(java.lang.String aString, java.lang.String aPrefix, int aStringOffset)
String.startsWith(String, int)
public static boolean endsWithIgnoreCase(java.lang.String aString, java.lang.String aSuffix)
String.startsWith(String)
public static java.lang.String replacePrefixPreserveCase(java.lang.String aString, int aPrefixLength, java.lang.String aNewPrefix)
public static java.lang.String replaceSuffixPreserveCase(java.lang.String aString, int aSuffixLength, java.lang.String aNewSuffix)
public static java.lang.String toMatchingCase(java.lang.String aString, java.lang.String aCaseString)
public static java.lang.String capitalizeFirstCharacter(java.lang.String aString)
aString
- the input string