(src: &str, from: usize, pat: &str)
| 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 | } |
| 109 | |
| 110 | /// The end of a `//` comment starting at `i`: its newline (a `\` before it continues the comment). |
| 111 | fn line_comment_end(src: &str, mut i: usize) -> usize { |
no test coverage detected