(s: &[u8], mut i: usize)
| 146 | |
| 147 | /// End of the `\w+` run starting at `i` (caller checks `is_word_at(s, i)`). |
| 148 | #[inline] |
| 149 | fn word_end(s: &[u8], mut i: usize) -> usize { |
| 150 | while i < s.len() && is_word(s[i]) { |
| 151 | i += 1; |
| 152 | } |
| 153 | i |
| 154 | } |
| 155 | |
| 156 | /// JS `\b` before position `i` (position 0, or previous byte non-word). |
no test coverage detected