(line: &str, end_col_exclusive: usize)
| 171 | } |
| 172 | |
| 173 | fn slice_to_column(line: &str, end_col_exclusive: usize) -> String { |
| 174 | let end = byte_index_for_column_end(line, end_col_exclusive); |
| 175 | if end == 0 { |
| 176 | return String::new(); |
| 177 | } |
| 178 | line[..end].to_string() |
| 179 | } |
| 180 | |
| 181 | fn byte_index_for_column_start(line: &str, target_col: usize) -> usize { |
| 182 | if target_col == 0 { |
no test coverage detected