Class BMPattern


  • public class BMPattern
    extends java.lang.Object
    Boyer-Moore searcher.
    • Constructor Summary

      Constructors 
      Constructor Description
      BMPattern​(java.lang.String pat, boolean ignoreCase)  
      BMPattern​(java.lang.String pat, int tableSize, boolean ignoreCase)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int matches​(char[] chars, int start, int limit)  
      int matches​(java.lang.String str, int start, int limit)  
      int matches​(java.text.CharacterIterator iterator, int start, int limit)  
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • BMPattern

        public BMPattern​(java.lang.String pat,
                         boolean ignoreCase)
      • BMPattern

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

      • matches

        public int matches​(java.text.CharacterIterator iterator,
                           int start,
                           int limit)
        Returns:
        -1 if iterator does not contain this pattern.
      • matches

        public int matches​(java.lang.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.