Package org.gvsig.compat.lang
Interface StringUtils
public interface StringUtils
String Utilities used for Java SE-ME compatibility.
- Author:
- Cèsar Ordiñana
-
Method Summary
Modifier and TypeMethodDescriptionintCompares two Strings, maybe taking into account the current locale.replaceAll(String input, String regex, String replacement) Compatible implementation of the String.replaceAll(regexp, replacement) method.replaceFirst(String input, String regex, String replacement) Compatible implementation of the String.replaceFirst(regexp, replacement) method.String[]Compatible implementation of the String.split(regexp) method.String[]Compatible implementation of the String.split(regexp, limit) method.
-
Method Details
-
split
Compatible implementation of the String.split(regexp) method.- See Also:
-
split
Compatible implementation of the String.split(regexp, limit) method.- See Also:
-
replaceAll
Compatible implementation of the String.replaceAll(regexp, replacement) method.- See Also:
-
replaceFirst
Compatible implementation of the String.replaceFirst(regexp, replacement) method.- See Also:
-
compare
Compares two Strings, maybe taking into account the current locale.- Parameters:
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).- Returns:
- Returns an integer value. Value is less than zero if source is less than target, value is zero if source and target are equal, value is greater than zero if source is greater than target.
-