Package org.eclipse.net4j.util
Class StringUtil
java.lang.Object
org.eclipse.net4j.util.StringUtil
Various static helper methods for dealing with strings.
- Author:
- Eike Stepper
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic boolean
appendSeparator
(StringBuilder builder, char c) static boolean
appendSeparator
(StringBuilder builder, String str) static String
static String
static int
static int
compareIgnoreCase
(String s1, String s2) static String
convert
(String str, IManagedContainer container) static String
convert
(String str, IManagedContainer container, Pattern pattern) static String
create
(char c, int length) static boolean
equalsIgnoreCase
(String s1, String s2) static boolean
equalsUpperOrLowerCase
(String s, String upperOrLowerCase) Deprecated.static String
static String
static String
static boolean
Matches a string against a pattern.static boolean
Matches a string against a pattern and fills an array with the sub-matches.static boolean
static boolean
static boolean
static int
occurrences
(String str, char c) static int
occurrences
(String str, String c) static <T> T
parse
(String str, IManagedContainer container, Class<T> type) static <T> T
parse
(String str, IManagedContainer container, Class<T> type, boolean enumCaseSensitive) static String
static String
static String
static String
static String
static String
static String
static void
static String
static String
static String
static String
static String
-
Field Details
-
EMPTY
- See Also:
-
NL
-
TRUE
- Since:
- 3.22
-
FALSE
- Since:
- 3.22
-
-
Method Details
-
create
- Since:
- 3.4
-
formatException
- Since:
- 2.0
-
replace
- Since:
- 3.16
-
replace
-
replace
- Since:
- 3.23
-
tokenize
- Since:
- 3.22
-
split
- Since:
- 3.4
-
safe
-
safe
- Since:
- 3.4
-
safe
- Since:
- 3.13
-
safe
- Since:
- 3.13
-
escape
- Since:
- 3.22
-
escape
- Since:
- 3.22
-
unescape
- Since:
- 3.22
-
unescape
- Since:
- 3.22
-
compare
-
compareIgnoreCase
- Since:
- 3.23
-
equalsIgnoreCase
- Since:
- 3.23
-
isTrue
- Since:
- 3.22
-
isFalse
- Since:
- 3.22
-
capAll
- Since:
- 2.0
-
cap
-
uncapAll
- Since:
- 2.0
-
uncap
-
occurrences
-
occurrences
-
translate
- Since:
- 3.8
-
convert
- Since:
- 3.23
-
convert
- Since:
- 3.23
-
parse
- Since:
- 3.23
-
parse
public static <T> T parse(String str, IManagedContainer container, Class<T> type, boolean enumCaseSensitive) - Since:
- 3.23
-
isEmpty
-
appendSeparator
- Since:
- 3.16
-
appendSeparator
- Since:
- 3.16
-
glob
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
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
-
equalsUpperOrLowerCase
Deprecated.As of 3.23 useequalsIgnoreCase(String, String)
.- Since:
- 3.1
-
equalsIgnoreCase(String, String)
.