pub fn byte_offset_to_position( text: &str, byte_offset: usize, offset_encoding: OffsetEncoding, ) -> Position