Convert from offset in revised string to offset in original string
Convert from offset in original string to offset in revised string
Converts a range position in the original document to a range position in the revised document.
Converts a range position in the original document to a range position in the revised document.
This method behaves differently from the other toRevised
in a few ways:
- it should only return None
in the case when the sources don't tokenize.
When the original token is removed in the revised document, we find instead the
nearest token in the original document instead.
Helper to map between position between two similar strings.