libsais_plcp

Function libsais_plcp 

Source
pub unsafe extern "C" fn libsais_plcp(
    T: *const u8,
    SA: *const i32,
    PLCP: *mut i32,
    n: i32,
) -> i32
Expand description

Constructs the permuted longest common prefix array (PLCP) of a given string and a suffix array.

§Arguments

  • T - [0..n-1] The input string.
  • SA - [0..n-1] The input suffix array.
  • PLCP - [0..n-1] The output permuted longest common prefix array.
  • n - The length of the string and the suffix array.

§Returns

0 if no error occurred, -1 otherwise.