pub unsafe extern "C" fn libsais_lcp(
PLCP: *const i32,
SA: *const i32,
LCP: *mut i32,
n: i32,
) -> i32Expand description
Constructs the longest common prefix array (LCP) of a given permuted longest common prefix array (PLCP) and a suffix array.
§Arguments
PLCP- [0..n-1] The input permuted longest common prefix array.SA- [0..n-1] The input suffix array or generalized suffix array (GSA).LCP- [0..n-1] The output longest common prefix array (can be SA).n- The length of the permuted longest common prefix array and the suffix array.
§Returns
0 if no error occurred, -1 otherwise.