(s: &[u8], i: usize)
| 155 | |
| 156 | /// JS `\b` before position `i` (position 0, or previous byte non-word). |
| 157 | #[inline] |
| 158 | fn boundary_before(s: &[u8], i: usize) -> bool { |
| 159 | i == 0 || !is_word(s[i - 1]) |
| 160 | } |
| 161 | |
| 162 | fn find_bytes(s: &[u8], needle: &[u8], from: usize) -> Option<usize> { |
no test coverage detected