pub fn extract_range_or_offset(text: &str) -> (RangeOrOffset, String)
Expand description

Extracts TextRange or TextSize depending on the amount of $0 markers found in text.

Panics

Panics if no $0 marker is present in the text.