org.enhydra.apache.xerces.utils.regex
Class BMPattern
java.lang.Object
|
+--org.enhydra.apache.xerces.utils.regex.BMPattern
- public class BMPattern
- extends Object
Boyer-Moore searcher.
Method Summary |
int |
matches(char[] chars,
int start,
int limit)
|
int |
matches(CharacterIterator iterator,
int start,
int limit)
|
int |
matches(String str,
int start,
int limit)
|
(package private) int |
matchesIgnoreCase(char[] chars,
int start,
int limit)
|
(package private) int |
matchesIgnoreCase(CharacterIterator iterator,
int start,
int limit)
|
(package private) int |
matchesIgnoreCase(String text,
int start,
int limit)
|
Methods inherited from class java.lang.Object |
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
pattern
char[] pattern
shiftTable
int[] shiftTable
ignoreCase
boolean ignoreCase
BMPattern
public BMPattern(String pat,
boolean ignoreCase)
BMPattern
public BMPattern(String pat,
int tableSize,
boolean ignoreCase)
matches
public int matches(CharacterIterator iterator,
int start,
int limit)
- Returns:
- -1 if iterator does not contain this pattern.
matches
public int matches(String str,
int start,
int limit)
- Returns:
- -1 if str does not contain this pattern.
matches
public int matches(char[] chars,
int start,
int limit)
- Returns:
- -1 if chars does not contain this pattern.
matchesIgnoreCase
int matchesIgnoreCase(CharacterIterator iterator,
int start,
int limit)
matchesIgnoreCase
int matchesIgnoreCase(String text,
int start,
int limit)
matchesIgnoreCase
int matchesIgnoreCase(char[] chars,
int start,
int limit)
Copyright © 1999 The Apache Software Foundation. All Rights reserved.