pub fn create_byte_to_char_idx_map(text: &str) -> Vec<usize>