(s: &[u8], i: usize)
| 101 | is_word_start(c) || c.is_ascii_digit() |
| 102 | } |
| 103 | fn at(s: &[u8], i: usize) -> u8 { |
| 104 | s.get(i).copied().unwrap_or(0) |
| 105 | } |
| 106 | fn find(src: &str, from: usize, pat: &str) -> Option<usize> { |
| 107 | src.get(from..).and_then(|rest| rest.find(pat)).map(|k| from + k) |
| 108 | } |
no test coverage detected