pub fn position_to_byte_offset(source: &str, line: u32, character: u32) -> usize
Convert an LSP (line, character) position back to a byte offset, where character is interpreted according to the negotiated PositionEncoding.
(line, character)
character
PositionEncoding