Skip to main content

string_end

Function string_end 

Source
pub fn string_end(src: &str, open: usize) -> Option<usize>
Expand description

Find the end of the "…" literal whose opening quote is at open, returning the index just past the closing quote, or None if the text ends first. \ hides the next scalar, so "\"" is one literal.