byte_offset

Function byte_offset 

Source
pub fn byte_offset(text: &str, line: u32, character: u32) -> Option<u32>
Expand description

The inverse of utf16_position: a line and UTF-16 character back to a byte offset.