Find the end of the line containing `offset` (after the `\n`).
(content: &str, offset: usize)
| 853 | |
| 854 | /// Find the end of the line containing `offset` (after the `\n`). |
| 855 | fn find_line_end(content: &str, offset: usize) -> usize { |
| 856 | match content[offset..].find('\n') { |
| 857 | Some(pos) => offset + pos + 1, |
| 858 | None => content.len(), |
| 859 | } |
| 860 | } |
| 861 | |
| 862 | /// Find the start of the line containing `offset`. |
| 863 | fn find_line_start(content: &str, offset: usize) -> usize { |
no test coverage detected