|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.eclipse.net4j.util.StringUtil
Various static helper methods for dealing with strings.
Field Summary | |
---|---|
static String |
EMPTY
|
static String |
NL
|
Method Summary | |
---|---|
static String |
cap(String str)
|
static String |
capAll(String str)
|
static int |
compare(String s1,
String s2)
|
static boolean |
equalsUpperOrLowerCase(String s,
String upperOrLowerCase)
|
static String |
formatException(Throwable t)
|
static boolean |
glob(String pattern,
String string)
Matches a string against a pattern. |
static boolean |
glob(String pattern,
String string,
String[] subStrings)
Matches a string against a pattern and fills an array with the sub-matches. |
static boolean |
isEmpty(String str)
|
static int |
occurrences(String str,
char c)
|
static int |
occurrences(String str,
String c)
|
static String |
replace(String text,
String[] find,
String[] replace)
|
static String |
safe(String str)
|
static String |
uncap(String str)
|
static String |
uncapAll(String str)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String EMPTY
public static final String NL
Method Detail |
---|
public static String formatException(Throwable t)
public static String replace(String text, String[] find, String[] replace)
public static String safe(String str)
public static int compare(String s1, String s2)
public static boolean equalsUpperOrLowerCase(String s, String upperOrLowerCase)
public static String capAll(String str)
public static String uncapAll(String str)
public static String cap(String str)
public static String uncap(String str)
public static int occurrences(String str, char c)
public static int occurrences(String str, String c)
public static boolean isEmpty(String str)
public static boolean glob(String pattern, String string)
Pattern description:
*
matches 0 or more characters
?
matches a single character
[...]
matches a set and/or range of characters
\
escapes the following character
public static boolean glob(String pattern, String string, String[] subStrings)
Pattern description:
*
matches 0 or more characters
?
matches a single character
[...]
matches a set and/or range of characters
\
escapes the following character
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |