Get character index given byte offset
(lineno, offset)
| 849 | lines = segment.splitlines() |
| 850 | |
| 851 | def normalize(lineno, offset): |
| 852 | """Get character index given byte offset""" |
| 853 | return _byte_offset_to_character_offset(lines[lineno], offset) |
| 854 | |
| 855 | def next_valid_char(lineno, col): |
| 856 | """Gets the next valid character index in `lines`, if |
no test coverage detected