summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2020-07-03 11:30:00 +0200
committerErich Eckner <git@eckner.net>2020-07-03 11:30:00 +0200
commit2fd3fe7404cdaf41b898d2e830ec970c0e073eac (patch)
tree3876faea4d6ce7a59bfcff7e178ccc50dca44f6a
parent3a972b83a2444ed756a1c0901418ec6de2616bb8 (diff)
downloadunits-2fd3fe7404cdaf41b898d2e830ec970c0e073eac.tar.xz
lowlevelunit.pas: intArrayToStr() neu
-rw-r--r--lowlevelunit.pas14
1 files changed, 14 insertions, 0 deletions
diff --git a/lowlevelunit.pas b/lowlevelunit.pas
index 3477bf8..b9036e2 100644
--- a/lowlevelunit.pas
+++ b/lowlevelunit.pas
@@ -176,6 +176,7 @@ procedure readAnAndorString(var f: file; out s: string; const len: int64; checkE
procedure readAnAndorString(var f: file; out s: string; checkEOL: boolean); overload;
procedure splitStrToInt(s: string; out ia: tLongintArray);
+function intArrayToStr(ia: tLongintArray): string;
function vergleicheStrings(s1,s2: string): integer;
function pruefSumme(s: string; m: longestOrdinal): longestOrdinal; inline;
@@ -1430,6 +1431,19 @@ begin
end;
end;
+function intArrayToStr(ia: tLongintArray): string;
+var
+ i: longint;
+begin
+ result:='';
+ for i:=0 to length(ia)-1 do begin
+ if i>0 then
+ result:=result + ' ';
+ result:=result + intToStr(ia[i]);
+ end;
+
+end;
+
function vergleicheStrings(s1,s2: string): integer;
var
i: longint;