A wrapper for the unix diff
command line program.
insertFunc |
Specify what to do when a new element is inserted in the result. As arguments are passed: newToken, index, oldToken. |
removeFunc |
Specify what to do when an element is removed. As arguments are passed: oldToken, index. |
swapFunc |
Specify what to do when an element is replaced by a new one. As arguments are passed: newToken, index, oldToken. |
keepFunc |
Specify what to do when an element is kept as it was. As arguments are passed: oldToken, index. |
beginFunc |
Specify what to do before the string is compared. As arguments are passed: oldToken, index. |
returnFunc |
Specify what to return from |
testFunc |
A global test functions that is called before calling any of the above (apart from beginFunc and returnFunc). As arguments are passed: index, operator, oldToken, newToken. |
Compare two arrays of tokens. A token can be a String or anything that can be converted to a string consistently (e.g. Char, Symbol, Integer, but also an Array of these).
newTokens, oldTokens |