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)
StringUtils
split
in interface StringUtils
String.split(String)
public String[] split(String input, String regex, int limit)
StringUtils
split
in interface StringUtils
String.split(String, int)
public String replaceAll(String input, String regex, String replacement)
StringUtils
replaceAll
in interface StringUtils
String.replaceAll(String, String)
public String replaceFirst(String input, String regex, String replacement)
StringUtils
replaceFirst
in interface StringUtils
String.replaceFirst(String, String)
public int compare(String source, String target, boolean localized)
StringUtils
compare
in interface StringUtils
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).