Skip to content

sriharshakappala/boyer_moore

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

60 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

BoyerMoore

Inspired by https://github.com/jashmenn/boyermoore

BoyerMoore is the fastest substring search strategy.

Installation

Add this line to your application's Gemfile:

gem 'boyer_moore'

And then execute:

$ bundle

Or install it yourself as:

$ gem install boyer_moore

Usage

BoyerMoore.search("foobar", "bar")     # => 3
BoyerMoore.search("foobar", "oof")     # => nil
BoyerMoore.search("foobar", "foo")     # => 0

About

Ruby wrapper for Boyer-Moore - The fastest search strategy, ever!

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published