|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sourceforge.wurfl.core.utils.StringUtils
public final class StringUtils
Strings matching utility class.
This class contains the utility methods for the strings.
| Method Summary | |
|---|---|
static int |
firstSemiColon(String target)
|
static int |
firstSlash(String target)
Return the position of first slash of the userAgent string. |
static int |
firstSpace(String target)
Return the position of first space of the given string. |
static String |
hierarchyAsString(List hierarchy)
Display a device hierarchy as String: generic -> ... |
static int |
indexOf(String userAgent,
String key)
|
static int |
indexOfOrLength(String target,
String needle)
|
static int |
indexOfOrLength(String target,
String needle,
int startIndex)
|
static String |
ldMatch(SortedSet candidates,
String needle,
int tolerance)
This method use the LDMatcher to search the given needle. |
static int |
ordinalIndexOfOrLength(String target,
String needle,
int ordinal)
|
static int |
ordinalIndexOfOrLength(String target,
String needle,
int ordinal,
int startIndex)
|
static String |
risMatch(SortedSet candidates,
String needle,
int tolerance)
This method use the RISMatcher to search the given needle. |
static int |
secondSlash(String target)
Return the index of second of the given string. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static int firstSlash(String target)
target - A string to search first slash
public static int secondSlash(String target)
target - A string on which find second slash.
public static int firstSemiColon(String target)
public static int firstSpace(String target)
target - A string to search first slash
public static int indexOfOrLength(String target,
String needle)
public static int indexOfOrLength(String target,
String needle,
int startIndex)
public static int ordinalIndexOfOrLength(String target,
String needle,
int ordinal)
public static int ordinalIndexOfOrLength(String target,
String needle,
int ordinal,
int startIndex)
public static String risMatch(SortedSet candidates,
String needle,
int tolerance)
RISMatcher to search the given needle.
needle - String to searchcandidates - Strings to search againsttolerance - The tolerance to use in matching.RISMatcher.match(SortedSet, String, int)
public static String ldMatch(SortedSet candidates,
String needle,
int tolerance)
LDMatcher to search the given needle.
needle - String to searchcandidates - Strings to search againsttolerance - The tolerance to use in matching.LDMatcher.match(SortedSet, String, int)public static String hierarchyAsString(List hierarchy)
hierarchy - The hierarchy to convert.
public static int indexOf(String userAgent,
String key)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||