public class StandardStringUtils extends java.lang.Object implements StringUtils
Constructor and Description |
---|
StandardStringUtils() |
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.
|
public java.lang.String[] split(java.lang.String input, java.lang.String regex)
StringUtils
split
in interface StringUtils
String.split(String)
public java.lang.String[] split(java.lang.String input, java.lang.String regex, int limit)
StringUtils
split
in interface StringUtils
String.split(String, int)
public java.lang.String replaceAll(java.lang.String input, java.lang.String regex, java.lang.String replacement)
StringUtils
replaceAll
in interface StringUtils
String.replaceAll(String, String)
public java.lang.String replaceFirst(java.lang.String input, java.lang.String regex, java.lang.String replacement)
StringUtils
replaceFirst
in interface StringUtils
String.replaceFirst(String, String)
public int compare(java.lang.String source, java.lang.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).