public class StandardStringUtils extends Object implements StringUtils
| Constructor and Description |
|---|
StandardStringUtils() |
| 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.
|
public String[] split(String input, String regex)
StringUtilssplit in interface StringUtilsString.split(String)public String[] split(String input, String regex, int limit)
StringUtilssplit in interface StringUtilsString.split(String, int)public String replaceAll(String input, String regex, String replacement)
StringUtilsreplaceAll in interface StringUtilsString.replaceAll(String, String)public String replaceFirst(String input, String regex, String replacement)
StringUtilsreplaceFirst in interface StringUtilsString.replaceFirst(String, String)public int compare(String source, String target, boolean localized)
StringUtilscompare in interface StringUtilssource - 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).