summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2016-05-11 09:26:50 +0200
committerErich Eckner <git@eckner.net>2016-05-11 09:26:50 +0200
commitb972c8d658f4338d2a030cc1beb05f544e1a45cb (patch)
tree0e2b4e1db30671ee9104030fa67147fa61383019
parentbe9870d44ffc61cd80860980358d5cc6967d03a9 (diff)
downloadunits-b972c8d658f4338d2a030cc1beb05f544e1a45cb.tar.xz
mystringlistunit.pas: stepBack neu
-rw-r--r--mystringlistunit.pas7
1 files changed, 7 insertions, 0 deletions
diff --git a/mystringlistunit.pas b/mystringlistunit.pas
index b666f81..6526dcb 100644
--- a/mystringlistunit.pas
+++ b/mystringlistunit.pas
@@ -29,6 +29,7 @@ type
function hatZeile(zeile: string): boolean; // invers zu "grep -c"
function eof: boolean;
procedure rewind;
+ procedure stepBack;
function stillNeed(bez: string): boolean;
function needInLine(bez: string; lin: longint): boolean;
procedure insert(index: longint; const s: ansistring); override;
@@ -217,6 +218,12 @@ begin
line:=0;
end;
+procedure tMyStringlist.stepBack;
+begin
+ dec(line);
+ if line<0 then line:=0;
+end;
+
function tMyStringlist.stillNeed(bez: string): boolean;
var
i: longint;