public class BoyerMoore
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static int |
ALPHABET_SIZE |
Constructor and Description |
---|
BoyerMoore(byte[] pattern) |
Modifier and Type | Method and Description |
---|---|
int |
partialMatch()
Return the number of matching characters before
the end of a chunk.
|
int |
search(byte[] text,
int start, int end)
Search for pattern in the byte array text.
|
public static final int ALPHABET_SIZE
public int search(byte[] text, int start, int end)
text
- byte array to searchstart
- start positionend
- end positionpublic int partialMatch()
Copyright © 2024 MarkLogic
Corporation
Complete online documentation for MarkLogic Server,
XQuery and related components may
be found at
developer.marklogic.com