The end of the identifier at `i`, if one starts there.
(s: &[u8], i: usize)
| 143 | |
| 144 | /// The end of the identifier at `i`, if one starts there. |
| 145 | fn word_end(s: &[u8], i: usize) -> Option<usize> { |
| 146 | if i >= s.len() || !is_word_start(s[i]) { |
| 147 | return None; |
| 148 | } |
| 149 | let mut j = i + 1; |
| 150 | while j < s.len() && is_word_char(s[j]) { |
| 151 | j += 1; |
| 152 | } |
| 153 | Some(j) |
| 154 | } |
| 155 | |
| 156 | /// Past the string or character literal whose quote is at `i` (it stops at a newline). |
| 157 | fn quoted_end(s: &[u8], i: usize) -> usize { |
no test coverage detected