pub fn position_to_index(source: &str, position: (usize, usize)) -> usize
Map position (line, column) to index
Line and column are zero based