org.crosswire.common.diff
Interface Locator

All Known Implementing Classes:
Bitap, Match

public interface Locator

Represents the location of the best match.

Author:
DM Smith
See Also:
The GNU Lesser General Public License for details.

Method Summary
 int locate()
          Locate the best match of a pattern in text near a supplied location.
 int maxPatternLength()
          The maximum length a pattern can be.
 

Method Detail

locate

int locate()
Locate the best match of a pattern in text near a supplied location.

Returns:
Best match index or -1, if no match found

maxPatternLength

int maxPatternLength()
The maximum length a pattern can be.

Returns:
maximum pattern length.

Copyright ยจ 2003-2015