public class StringSearch
extends java.lang.Object
| Constructor and Description |
|---|
StringSearch() |
| Modifier and Type | Method and Description |
|---|---|
static int |
indexOf(java.lang.String s,
int base,
java.lang.String... targets)
find first of a number of possible targets.
|
static int |
indexOf(java.lang.String s,
java.lang.String... targets)
find first of a number of possible targets.
|
static int |
indexOfEnd(java.lang.String s,
int base,
java.lang.String... targets)
find first of a number of possible targets
|
static int |
indexOfEnd(java.lang.String s,
java.lang.String... targets)
find first of a number of possible targets
|
static int |
lastIndexOf(java.lang.String s,
int base,
java.lang.String... targets)
find last of a number of possible targets, one closest to the end
|
static int |
lastIndexOf(java.lang.String s,
java.lang.String... targets)
find last of a number of possible targets, one closest to the end
|
static int |
lastIndexOfEnd(java.lang.String s,
int base,
java.lang.String... targets)
find last of a number of possible targets, one closest to the end
|
static int |
lastIndexOfEnd(java.lang.String s,
java.lang.String... targets)
find last of a number of possible targets, one closest to the end
|
public static int indexOf(java.lang.String s,
java.lang.String... targets)
s - String to search intargets - multiple targets to search forpublic static int indexOf(java.lang.String s,
int base,
java.lang.String... targets)
s - String to search inbase - offset where to start lookingtargets - multiple targets to search forpublic static int indexOfEnd(java.lang.String s,
java.lang.String... targets)
s - String to search intargets - multiple targets to search forpublic static int indexOfEnd(java.lang.String s,
int base,
java.lang.String... targets)
s - String to search inbase - offset where to start lookingtargets - multiple targets to search forpublic static int lastIndexOf(java.lang.String s,
java.lang.String... targets)
s - String to search intargets - multiple targets to search forpublic static int lastIndexOf(java.lang.String s,
int base,
java.lang.String... targets)
s - String to search inbase - offset where to start lookingtargets - multiple targets to search forpublic static int lastIndexOfEnd(java.lang.String s,
java.lang.String... targets)
s - String to search intargets - multiple targets to search forpublic static int lastIndexOfEnd(java.lang.String s,
int base,
java.lang.String... targets)
s - String to search inbase - offset where to start lookingtargets - multiple targets to search for