For the complete documentation index, see llms.txt. This page is also available as Markdown.

Twoway

Fast substring search by two way algorithm

twoway implements Two way algorithm for substring search which is highly optimised using SMID acceleration (depending on availability).

Example usage,

let loc = twoway::find_str("hello there how are you?", "there");
assert_eq!(Some(6), loc);

Last updated