arrow_string::substring

Function get_start_end_offset

Source
fn get_start_end_offset(
    val: &str,
    start: usize,
    length: Option<usize>,
) -> (usize, usize)
Expand description
  • val - string
  • start - the start char index of the substring
  • length - the char length of the substring

Return the start and end offset (by byte) of the substring