rustc_span::analyze_source_file

Function analyze_source_file

source
pub(crate) fn analyze_source_file(
    src: &str,
) -> (Vec<RelativeBytePos>, 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.