Class MappedDiff
Computes diff between sequences of strings.
-
Diff
-
MappedDiff
Methods summary
public
|
#
MappedDiff( mixed $from_lines, mixed $to_lines, mixed $mapped_from_lines, mixed $mapped_to_lines )
Constructor.
Computes diff between sequences of strings.
This can be used to compute things like case-insensitve diffs, or diffs which
ignore changes in white-space.
Parameters
- $from_lines
- $from_lines array An array of strings. (Typically these are lines from a file.)
- $to_lines
- $to_lines array An array of strings.
- $mapped_from_lines
- $mapped_from_lines array This array should have the same size number of elements
as $from_lines. The elements in $mapped_from_lines and $mapped_to_lines are what
is actually compared when computing the diff.
- $mapped_to_lines
- $mapped_to_lines array This array should have the same number of elements as
$to_lines.
|
Methods inherited from Diff
Diff(),
_check(),
cleanHTML(),
compareHTML(),
finaltext(),
getHTMLChunks(),
isEmpty(),
lcs(),
orig(),
reverse()
Magic methods summary
Properties summary
Properties inherited from Diff
$edits,
$html_cleaner_class
[Raise a SilverStripe Framework issue/bug](https://github.com/silverstripe/silverstripe-framework/issues/new)
- [Raise a SilverStripe CMS issue/bug](https://github.com/silverstripe/silverstripe-cms/issues/new)
- Please use the
Silverstripe Forums to ask development related questions.
-