Function rustc_span::analyze_source_file::analyze_source_file
source · pub fn analyze_source_file(
src: &str
) -> (Vec<RelativeBytePos>, Vec<MultiByteChar>, Vec<NonNarrowChar>)
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.