<T>
Inspired by https://github.com/nikic/PHP-Parser/tree/36a6dcd04e7b0285e8f0868f44bd4927802f7df1
Copyright (c) 2011, Nikita Popov All rights reserved.
Implements the Myers diff algorithm.
Myers, Eugene W. "An O (ND) difference algorithm and its variations." Algorithmica 1.1 (1986): 251-266.
Methods | ||
---|---|---|
public
|
__construct(callable(T, T): bool $isEqual)
|
# |
public
|
diff(T[] $old, T[] $new): DiffElem[]
|
# |
public
|
diffWithReplacements(T[] $old, T[] $new): DiffElem[]
|
# |