Class BMPattern


  • public class BMPattern
    extends Object
    Boyer-Moore searcher.
    Version:
    $Id$
    • Constructor Detail

      • BMPattern

        public BMPattern​(String pat,
                         boolean ignoreCase)
      • BMPattern

        public BMPattern​(String pat,
                         int tableSize,
                         boolean ignoreCase)
    • Method Detail

      • 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.