Function leo_span::source_map::analyze_source_file

source ยท
fn analyze_source_file(
    src: &str,
    source_file_start_pos: BytePos,
) -> (Vec<BytePos>, Vec<MultiByteChar>)
Expand description

Finds all newlines, multi-byte characters, and non-narrow characters in a SourceFile.

This function will use an SSE2 enhanced implementation if hardware support is detected at runtime.