Skip to main content

build_suffix_array

Function build_suffix_array 

Source
pub fn build_suffix_array(text: &[u8]) -> Vec<u32>
Expand description

Build a suffix array for the given text.

The output sa does not contain a sentinel suffix — its length is exactly text.len(), matching what the C++ CaPS_SA produces.