Skip to main content

str_offset_in_range

Function str_offset_in_range 

Source
pub fn str_offset_in_range(source: &str, span: Span, name: &str) -> Option<u32>
Expand description

Find a name within a specific byte range of the source, with word-boundary matching. Returns the absolute byte offset if found, None otherwise.