pub fn utf16_offset(
text: &str,
line: u32,
byte_column: u32,
) -> Result<u32, PositionError>Expand description
The 0-based UTF-16 offset of a 1-based byte column on a 1-based line.
ยงErrors
Returns the position error describing how the graph and the file disagree.