(haystack: &[u8])
| 1576 | /// offset and the byte found. Uses `memchr` for SIMD acceleration. |
| 1577 | #[inline] |
| 1578 | fn memchr2_single_string(haystack: &[u8]) -> Option<(usize, u8)> { |
| 1579 | memchr::memchr2(b'\'', b'\\', haystack).map(|pos| (pos, haystack[pos])) |
| 1580 | } |
| 1581 | |
| 1582 | /// Find the next double-quote or backslash in a slice, returning the |
| 1583 | /// offset and the byte found. Uses `memchr` for SIMD acceleration. |
no test coverage detected