Skip to content

Methods

The engine, with no componentwidget anywhere in it. Two documents in and what changed out, two pictures in and what changed out, a patch read or written.

PageWhat it does
diffTextCompares two documents by line, then inside each changed line.
diffWordsCompares two lines a word at a time.
diffCharactersThe same comparison, a character at a time.
diffSequenceCompares two sequences of tokens, whatever the tokens are.
formatPatchWrites a comparison out as a unified diff.
parsePatchReads a unified diff back into comparisons.
diffImageCompares two pictures pixel by pixel.
diffImagesCompares several pictures at once against a baseline.
imageSimilaritySays how alike two pictures are, as one number.
imagesSimilaritySays how alike several are, and which is the odd one out.
paintDiffImageTurns the mask of a comparison into a picture.
paintDiffImagesThe same, for a comparison of several.

Released under the MIT License