diff options
author | Erich Eckner <git@eckner.net> | 2016-05-11 09:26:50 +0200 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2016-05-11 09:26:50 +0200 |
commit | b972c8d658f4338d2a030cc1beb05f544e1a45cb (patch) | |
tree | 0e2b4e1db30671ee9104030fa67147fa61383019 /mystringlistunit.pas | |
parent | be9870d44ffc61cd80860980358d5cc6967d03a9 (diff) | |
download | units-b972c8d658f4338d2a030cc1beb05f544e1a45cb.tar.xz |
mystringlistunit.pas: stepBack neu
Diffstat (limited to 'mystringlistunit.pas')
-rw-r--r-- | mystringlistunit.pas | 7 |
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; |