try_extract_offset

Function try_extract_offset 

Source
pub(crate) fn try_extract_offset(text: &str) -> Option<(TextSize, String)>
Expand description

Returns the offset of the first occurrence of $0 marker and the copy of text without the marker.