eXept Software AG Logo

Smalltalk/X Webserver

Documentation of class 'Diff::Change':

Home

Documentation
www.exept.de
Everywhere
for:
[back]

Class: Change (private in Diff

This class is only visible from within Diff.

Inheritance:

   Object
   |
   +--Link
      |
      +--Diff::Change

Package:
stx:libtool
Category:
Collections-Sequenceable-Diff
Owner:
Diff

Description:


The result of comparison is an edit script: a chain of change objects.
Each change represents one place where some lines are deleted
and some are inserted.

LINE0 and LINE1 are the first affected lines in the two files (origin 0).
DELETED is the number of lines deleted here from file 0.
INSERTED is the number of lines inserted here in file 1.

If DELETED is 0 then LINE0 is the number of the line before
which the insertion was done; vice versa for INSERTED and LINE1.


Instance protocol:

accessing
o  deleted
Line number of 1st deleted line.

o  inserted
# lines of file 0 changed here.

o  line0
Line number of 1st deleted line.

o  line1
Line number of 1st inserted line.

enumerating
o  do: aBlock

instance creation
o  newLine0: aLine0 line1: aLine1 deleted: aDeleted inserted: aInserted next: nextChange
Cons an additional entry onto the front of an edit script OLD.
LINE0 and LINE1 are the first affected lines in the two files (origin 0).
DELETED is the number of lines deleted here from file 0.
INSERTED is the number of lines inserted here in file 1.

If DELETED is 0 then LINE0 is the number of the line before
which the insertion was done; vice versa for INSERTED and LINE1.



ST/X 7.7.0.0; WebServer 1.702 at 20f6060372b9.unknown:8081; Sun, 22 Dec 2024 01:58:30 GMT