unsafe fn replace_ascii(utf8_bytes: &[u8], from: u8, to: u8) -> StringExpand description
Faster implementation of string replacement for ASCII to ASCII cases. Should produce fast vectorized code.
§Safety
utf8_bytesmust contain valid UTF-8.- Both
fromandtomust be ASCII bytes (at most0x7F).