Skip to main content

byte_offset_utf16

Function byte_offset_utf16 

Source
pub fn byte_offset_utf16(line_text: &str, col_utf16: usize) -> usize
Expand description

Convert a UTF-16 column index to a byte offset for a single line.