|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.croftsoft.core.lang.StringLib
public class StringLib
A collection of static methods to manipulate java.lang.String.
Field Summary | |
---|---|
static String[] |
ZERO_LENGTH_STRING_ARRAY
|
Method Summary | |
---|---|
static void |
main(String[] args)
|
static String |
padLeft(String s,
char c,
int length)
|
static String |
padRight(String s,
char c,
int length)
|
static String |
remove(String s,
int fromIndex,
int toIndex)
Returns a String with the characters between fromIndex and toIndex removed, inclusive. |
static String |
replace(String s,
String oldSub,
String newSub)
Replaces substrings in a String. |
static String[] |
toStringArray(String text)
Breaks a String at the ends of lines. |
static String |
trimToNull(String s)
Returns null if the trimming operation results in the empty String. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String[] ZERO_LENGTH_STRING_ARRAY
Method Detail |
---|
public static void main(String[] args)
public static String padLeft(String s, char c, int length)
padRight(java.lang.String, char, int)
public static String padRight(String s, char c, int length)
padLeft(java.lang.String, char, int)
public static String remove(String s, int fromIndex, int toIndex)
public static String replace(String s, String oldSub, String newSub)
public static String[] toStringArray(String text)
public static String trimToNull(String s)
s
- May be null.
|
CroftSoft Javadoc | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |