(haystack: &[u8])
| 1583 | /// offset and the byte found. Uses `memchr` for SIMD acceleration. |
| 1584 | #[inline] |
| 1585 | fn memchr2_double_string(haystack: &[u8]) -> Option<(usize, u8)> { |
| 1586 | memchr::memchr2(b'"', b'\\', haystack).map(|pos| (pos, haystack[pos])) |
| 1587 | } |
| 1588 | |
| 1589 | /// Check whether the keyword at position `i` is preceded by `use ` |
| 1590 | /// (with optional whitespace), indicating a `use function` or `use const` |
no test coverage detected