org.sadun.util
Class StringFinder
java.lang.Object
org.sadun.util.StringFinder
- public class StringFinder
- extends java.lang.Object
To change this generated comment edit the template variable "typecomment":
Window>Preferences>Java>Templates.
To enable and disable the creation of type comments go to
Window>Preferences>Java>Code Generation.
- Author:
- Cristiano Sadun
Constructor Summary |
StringFinder()
Constructor for StringFinder. |
Method Summary |
static int[] |
findNotQuoted(java.lang.String src,
java.lang.String[] substrings,
boolean ignoreCase)
|
static int[] |
findNotQuoted(java.lang.String src,
java.lang.String[] substrings,
boolean ignoreCase,
int startPos)
|
static int[] |
findNotQuoted(java.lang.String src,
java.lang.String[] substrings,
java.lang.String quoteChars,
boolean ignoreCase)
|
static int[] |
findNotQuoted(java.lang.String src,
java.lang.String[] substrings,
java.lang.String quoteChars,
boolean ignoreCase,
int startPos)
Efficiently search for one of many substring within a string, ignoring quoted
text. |
static int |
findNotQuotedIndex(java.lang.String src,
java.lang.String target,
boolean ignoreCase)
|
static int |
findNotQuotedIndex(java.lang.String src,
java.lang.String target,
boolean ignoreCase,
int startPos)
|
static int |
findNotQuotedIndex(java.lang.String src,
java.lang.String target,
java.lang.String quoteChars,
boolean ignoreCase)
|
static int |
findNotQuotedIndex(java.lang.String src,
java.lang.String target,
java.lang.String quoteChars,
boolean ignoreCase,
int startPos)
|
static void |
main(java.lang.String[] args)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
StringFinder
public StringFinder()
- Constructor for StringFinder.
findNotQuoted
public static int[] findNotQuoted(java.lang.String src,
java.lang.String[] substrings,
boolean ignoreCase,
int startPos)
findNotQuoted
public static int[] findNotQuoted(java.lang.String src,
java.lang.String[] substrings,
boolean ignoreCase)
findNotQuoted
public static int[] findNotQuoted(java.lang.String src,
java.lang.String[] substrings,
java.lang.String quoteChars,
boolean ignoreCase)
findNotQuotedIndex
public static int findNotQuotedIndex(java.lang.String src,
java.lang.String target,
java.lang.String quoteChars,
boolean ignoreCase)
findNotQuotedIndex
public static int findNotQuotedIndex(java.lang.String src,
java.lang.String target,
java.lang.String quoteChars,
boolean ignoreCase,
int startPos)
findNotQuotedIndex
public static int findNotQuotedIndex(java.lang.String src,
java.lang.String target,
boolean ignoreCase)
findNotQuotedIndex
public static int findNotQuotedIndex(java.lang.String src,
java.lang.String target,
boolean ignoreCase,
int startPos)
findNotQuoted
public static int[] findNotQuoted(java.lang.String src,
java.lang.String[] substrings,
java.lang.String quoteChars,
boolean ignoreCase,
int startPos)
- Efficiently search for one of many substring within a string, ignoring quoted
text.
main
public static void main(java.lang.String[] args)