fn get_start_end_offset(
    val: &str,
    start: usize,
    length: Option<usize>,
) -> (usize, usize)Expand description
val- stringstart- the start char index of the substringlength- the char length of the substring
Return the start and end offset (by byte) of the substring