0.6.0 • Published 2 years ago

rabin-karp-wasm v0.6.0

Weekly downloads
-
License
-
Repository
-
Last release
2 years ago

rabin-karp-wasm

A rust implementation of the rabin-karp rolling hash algorithm for sub-string searching repo: https://github.com/AJTJ/rabin_karp_wasm

usage:

import { find_matches } from "rabin-karp-wasm";

// it will return an array of indices where substring matches begin
let result = find_matches(STRING_PATTERN_TO_SEARCH_FOR, STRING_TO_SEARCH_WITHIN);

TODO:

  • Currently building out support for multi-character graphemes. It currently only supports single-character graphemes, i.e. the english alphabet.

The original experiment (Now deprecated) began here: https://github.com/AJTJ/rabin_karp

0.6.0

2 years ago

0.5.0

2 years ago

0.4.0

2 years ago

0.3.0

2 years ago

0.2.0

2 years ago

0.1.0

2 years ago