public interface StringUtils
Modifier and Type | Method and Description |
---|---|
int |
compare(String source,
String target,
boolean localized)
Compares two Strings, maybe taking into account the current locale.
|
String |
replaceAll(String input,
String regex,
String replacement)
Compatible implementation of the String.replaceAll(regexp, replacement)
method.
|
String |
replaceFirst(String input,
String regex,
String replacement)
Compatible implementation of the String.replaceFirst(regexp, replacement)
method.
|
String[] |
split(String input,
String regex)
Compatible implementation of the String.split(regexp) method.
|
String[] |
split(String input,
String regex,
int limit)
Compatible implementation of the String.split(regexp, limit) method.
|
String[] split(String input, String regex)
String.split(String)
String[] split(String input, String regex, int limit)
String.split(String, int)
String replaceAll(String input, String regex, String replacement)
String.replaceAll(String, String)
String replaceFirst(String input, String regex, String replacement)
String.replaceFirst(String, String)
int compare(String source, String target, boolean localized)
source
- the source texttarget
- the target text to compare tolocalized
- if the comparison must be made with the current locale (ex: if
making a difference between accented characters or not).