summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2016-05-20 10:20:36 +0200
committerErich Eckner <git@eckner.net>2016-05-20 10:20:36 +0200
commitf3b592b228a1d0c40fafc1347c8254f35cf56a79 (patch)
tree357adaff138c94d63532a51a1a4b00b856dca159
parent6127ae1152c7f7961b6fbfd80dc8c37db55e55c3 (diff)
downloadunits-f3b592b228a1d0c40fafc1347c8254f35cf56a79.tar.xz
append kann nun auch tMyStringList anhängen in mystringlistunit.pas
-rw-r--r--mystringlistunit.pas9
1 files changed, 9 insertions, 0 deletions
diff --git a/mystringlistunit.pas b/mystringlistunit.pas
index 31f9af5..e01abff 100644
--- a/mystringlistunit.pas
+++ b/mystringlistunit.pas
@@ -27,6 +27,7 @@ type
function metaReadln(out s: string; subRoutine: boolean): boolean; inline;
procedure grep(expr: string; invert: boolean = false);
function grepFirst(expr: string): string;
+ procedure append(sl: tMyStringList); overload;
function hatZeile(zeile: string): boolean; // invers zu "grep -c"
function eof: boolean;
procedure rewind;
@@ -215,6 +216,14 @@ begin
result:='';
end;
+procedure tMyStringlist.append(sl: tMyStringList);
+var
+ i: longint;
+begin
+ for i:=0 to sl.count-1 do
+ add(sl[i]);
+end;
+
function tMyStringlist.hatZeile(zeile: string): boolean;
var
re: tRegExpr;