org.eclipse.net4j.util
Class StringUtil
java.lang.Object
org.eclipse.net4j.util.StringUtil
public final class StringUtil
- extends Object
- Author:
- Eike Stepper
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
EMPTY
public static final String EMPTY
- See Also:
- Constant Field Values
NL
public static final String NL
formatException
public static String formatException(Throwable t)
- Since:
- 2.0
replace
public static String replace(String text,
String[] find,
String[] replace)
safe
public static String safe(String str)
compare
public static int compare(String s1,
String s2)
equalsUpperOrLowerCase
public static boolean equalsUpperOrLowerCase(String s,
String upperOrLowerCase)
- Since:
- 3.1
capAll
public static String capAll(String str)
- Since:
- 2.0
uncapAll
public static String uncapAll(String str)
- Since:
- 2.0
cap
public static String cap(String str)
uncap
public static String uncap(String str)
occurrences
public static int occurrences(String str,
char c)
occurrences
public static int occurrences(String str,
String c)
isEmpty
public static boolean isEmpty(String str)
glob
public static boolean glob(String pattern,
String string)
- Matches a string against a pattern.
Pattern description:
*
matches 0 or more characters
?
matches a single character
[...]
matches a set and/or range of characters
\
escapes the following character
- Since:
- 2.0
glob
public static boolean glob(String pattern,
String string,
String[] subStrings)
- Matches a string against a pattern and fills an array with the sub-matches.
Pattern description:
*
matches 0 or more characters
?
matches a single character
[...]
matches a set and/or range of characters
\
escapes the following character
- Since:
- 2.0
Copyright (c) 2004 - 2011 Eike Stepper (Berlin, Germany) and others.