Method Summary |
|
void | clear() Allocate changed array for the results of comparison. |
void | discardConfusingLines(FileData f) Discard lines that have no matches in another file.
A line which is discarded will not be considered by the actual
comparison algorithm; it will be as if that line were not in the file.
The file's `realindexes' table maps virtual line numbers
(which don't count the discarded lines) into real line numbers;
this is how the actual comparison algorithm produces results
that are comprehensible when the discarded lines are counted.
When we discard a line, we also mark it as a deletion or insertion
so that it will be printed in the output. |
int[] | equivCount() Return equiv_count[I] as the number of lines in this file
that fall in equivalence class I. |
public boolean[] | getChangedFlags() Returns the changedFlags. |
public int | getNumLinesInBuffer() Returns the numLinesInBuffer. |
public int | getNumLinesNotDiscarded() Returns the numLinesNotDiscarded. |
public int[] | getRealindexes() Returns the realindexes. |
public int[] | getUndiscarded() Returns the undiscarded. |
void | shift_boundaries(FileData f) Adjust inserts/deletes of blank lines to join changes
as much as possible.
We do something when a run of changed lines include a blank
line at one end and have an excluded blank line at the other.
We are free to choose which blank line is included.
`compareseq' always chooses the one at the beginning,
but usually it is cleaner to consider the following blank line
to be the "change". |