:diff-str?
option for diff
to :diff-str
, whose value
could be :none
(default, no diff inside string), :line
(diff by line),
:word
(diff by word) or :character
(diff by character, original string
diff, very expensive).:vec-timeout
option for diff
, to specify a timeout in milliseconds
(default 1000), for it is sometimes too expensive to diff vectors. It is
O(n^2), after all. When timed-out, a replacement will be used.:str-change-limit
option for diff
, a less than 1.0
and greater than
0.0
double, representing percentage (default 0.2
). Only diff string when
less than given percentage is changed, otherwise replace the string. Because
string diff is expensive, it may be cheaper to replace the whole string.patch
with string diff inside:str-diff?
option to determine if strings need to be diffed, if so, :s
operator is used to represents the diff of two stringsa
valid-edits?
to accept more valid editsedits->script
function to convert a vector of edits to an EditScriptvalid-edits?
function to validate the edits vectorget-size
of an EditScriptcombine
function to combine two EditScriptsA*
to cases where one party contains only leaveslein test
A*
uses quick algorithm for all leaves list/vector comparisonA*
uses global order number for heuristicA*
algorithm for diffingCan you improve this documentation?Edit on GitHub
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close