public interface StringUtils
Modifier and Type | Method and Description |
---|---|
int |
compare(java.lang.String source,
java.lang.String target,
boolean localized)
Compares two Strings, maybe taking into account the current locale.
|
java.lang.String |
replaceAll(java.lang.String input,
java.lang.String regex,
java.lang.String replacement)
Compatible implementation of the String.replaceAll(regexp, replacement)
method.
|
java.lang.String |
replaceFirst(java.lang.String input,
java.lang.String regex,
java.lang.String replacement)
Compatible implementation of the String.replaceFirst(regexp, replacement)
method.
|
java.lang.String[] |
split(java.lang.String input,
java.lang.String regex)
Compatible implementation of the String.split(regexp) method.
|
java.lang.String[] |
split(java.lang.String input,
java.lang.String regex,
int limit)
Compatible implementation of the String.split(regexp, limit) method.
|
java.lang.String[] split(java.lang.String input, java.lang.String regex)
String.split(String)
java.lang.String[] split(java.lang.String input, java.lang.String regex, int limit)
String.split(String, int)
java.lang.String replaceAll(java.lang.String input, java.lang.String regex, java.lang.String replacement)
String.replaceAll(String, String)
java.lang.String replaceFirst(java.lang.String input, java.lang.String regex, java.lang.String replacement)
String.replaceFirst(String, String)
int compare(java.lang.String source, java.lang.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).