qtrac

Modules

ddiff
module qtrac.ddiff

* This module implements the Python difflib module's sequence matcher and * provides a diff() function. * * The function takes two slicable forward ranges of < and == comparable * objects (e.g., two slices of strings, two strings, two slices of ints, * two slices of "items") and diffs them using a slightly simplified * version of the Python difflib's sequence matcher algorithm. The * function returns a (possibly empty) slice of Diff structs, each with a * tag (equal, insert, delete, replace) and the two relevant subslices. * * See tests.d for some examples including Test #17, #18 and #19. * * Authors: Mark Summerfield, mark@qtrac.eu * License: Apache 2.0 * Copyright: © 2020 Mark Summerfield. All rights reserved.