* Overloaded split needs similar patch

git-svn-id: trunk@44313 -
This commit is contained in:
michael 2020-03-19 21:41:58 +00:00
parent 123fe94206
commit 5fe164498b

View File

@ -1311,9 +1311,12 @@ begin
begin
T:=SubString(LastSep);
// Writeln('Examining >',T,'< at pos,',LastSep,' till pos ',Sep);
MaybeGrow(Len);
Result[Len]:=T;
Inc(Len);
If (T<>'') or (not (TStringSplitOptions.ExcludeEmpty=Options)) then
begin
MaybeGrow(Len);
Result[Len]:=T;
Inc(Len);
end;
end;
SetLength(Result,Len);
end;