Skip to main content

replace_res_ref

Function replace_res_ref 

Source
pub fn replace_res_ref(text: &str, old: &str, new: &str) -> (String, usize)
Expand description

Replace only quote-wrapped res:// refs ("res://old", 'res://old') with the new ref. Bare, unquoted occurrences are left untouched.