Get character index given byte offset
(lineno, offset)
| 865 | lines = segment.splitlines() |
| 866 | |
| 867 | def normalize(lineno, offset): |
| 868 | """Get character index given byte offset""" |
| 869 | return _byte_offset_to_character_offset(lines[lineno], offset) |
| 870 | |
| 871 | def next_valid_char(lineno, col): |
| 872 | """Gets the next valid character index in `lines`, if |
no test coverage detected
searching dependent graphs…