org.apache.xerces.impl.xpath.regex

Class BMPattern


public class BMPattern
extends java.lang.Object

Boyer-Moore searcher.
Version:
$Id: BMPattern.java,v 1.5 2004/10/04 22:07:40 mrglavas Exp $

Constructor Summary

BMPattern(String pat, boolean ignoreCase)
BMPattern(String pat, int tableSize, boolean ignoreCase)

Method Summary

int
matches(CharacterIterator iterator, int start, int limit)
int
matches(String str, int start, int limit)
int
matches(char[] chars, int start, int limit)

Constructor Details

BMPattern

public BMPattern(String pat,
                 boolean ignoreCase)

BMPattern

public BMPattern(String pat,
                 int tableSize,
                 boolean ignoreCase)

Method Details

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.

Copyright B) 1999-2005 Apache XML Project. All Rights Reserved.