pub fn measure_escaped_string<S: AsRef<str>>(s: S) -> usize
Measures the length of a string after being escaped.