Stores changes positions in text and provides conversion for old to new positions and vice versa.
TChangeFixer = class;
ecSyntAnal
TChangeFixer allows calculate current position in text (after fixing changes) to old position in text (before fixing changes). To make correct conversion all changes in text must be fixed using Add method.
To convert position from current to old use CurToOld function; to convert from old to current use OldToCur function.
|
Topic |
Description |
|
The methods of the TChangeFixer class are listed here. |
|
Method |
|
virtual |
|
TChangeFixer Methods |
Description |
|
Saves text change in object. Count > 0 means text insertion; Count < 0 means text deletion. | |
|
Clears all saved changes, i.e. moves object to initial state. | |
|
Creates and initializes a TChangeFixer instance. | |
|
Calculates old position in text (before fixing changes) from current position in text (after fixing changes). | |
|
Destroys an instance of TChangeFixer. | |
|
Calculates current position in text (after fixing changes) from old position in text (before fixing changes). | |
|
Returns old position in text (before fixing changes) up to which text was not changed. |
|
Copyright (c) 2004-2011. All rights reserved.
|
|
What do you think about this topic? Send feedback!
|