dreamworkAPI
Ctrl K
GitHub
typeDocs / string / Difference

string.Difference

typesharedmenusource

A single edit operation produced by string.diff, describing one contiguous run of either unchanged, inserted, or removed characters.

Fields

NameTypeDescription
typestring.DifferenceTypeThe kind of operation this run represents.
start_positionintegerThe 1-based start index of the run within source, inclusive.
end_positionintegerThe 1-based end index of the run within source, inclusive.
sourcestringThe 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).
Generated from the dreamwork meta branch.