|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.darwinsys.lang.StringUtil
Miscellaneous string utilities: arrayToCommaList - print an array with commas, "and"; subst - simple substitute (like 1-4's String.subst but not RE-based) .
Constructor Summary | |
StringUtil()
|
Method Summary | |
static java.lang.String |
arrayToCommaList(java.lang.Object[] array)
Format an array of Object as a list with commas, like "apples, oranges, and bananas"); |
static int |
indexOf(java.lang.StringBuffer sb,
java.lang.String str,
int fromIndex)
Backwards-compability: StringBuffer.indexOf(String, int) added in JDK 1-4, but we need it here and one of my servers is on JDK 1-3. |
static java.lang.String |
subst(java.lang.String oldStr,
java.lang.String newStr,
java.lang.String input)
Simple string substitution (not RE-based). |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public StringUtil()
Method Detail |
public static java.lang.String arrayToCommaList(java.lang.Object[] array)
public static java.lang.String subst(java.lang.String oldStr, java.lang.String newStr, java.lang.String input)
public static int indexOf(java.lang.StringBuffer sb, java.lang.String str, int fromIndex)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |