1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32
//! This crate provides fast suffix array construction with Unicode support. //! //! The details of the construction algorithm are documented on the //! `SuffixTable` type. //! //! In general, suffix arrays are useful when you want to query some text //! repeatedly and quickly. //! //! # Examples //! //! Usage is extremely simple. You just create the suffix array and then //! search: //! //! ```rust //! use suffix::SuffixTable; //! //! let st = SuffixTable::new("the quick brown fox was quick."); //! assert_eq!(st.positions("quick"), &[4, 24]); //! //! // Or if you just want to test existence, this is faster: //! assert!(st.contains("quick")); //! assert!(!st.contains("faux")); //! ``` #![deny(missing_docs)] #[cfg(test)] extern crate quickcheck; pub use table::SuffixTable; mod table;