string.Difference
A single edit operation produced by string.diff, describing one contiguous run of either unchanged, inserted, or removed characters.
Fields
| Name | Type | Description |
|---|---|---|
type | string.DifferenceType | The kind of operation this run represents. |
start_position | integer | The 1-based start index of the run within source, inclusive. |
end_position | integer | The 1-based end index of the run within source, inclusive. |
source | string | The string the run's characters should be read from — either the original source (for 0 equal or 2 removed runs) or the target (for 1 inserted runs). |