|
@@ -1232,6 +1232,11 @@ begin
|
|
Inc(Len);
|
|
Inc(Len);
|
|
end;
|
|
end;
|
|
end;
|
|
end;
|
|
|
|
+
|
|
|
|
+ if (TStringSplitOptions.ExcludeLastEmpty=Options) then
|
|
|
|
+ if (Len > 0) and (Result[Len-1] = '') then
|
|
|
|
+ dec(Len);
|
|
|
|
+
|
|
SetLength(Result,Len);
|
|
SetLength(Result,Len);
|
|
end;
|
|
end;
|
|
|
|
|
|
@@ -1318,6 +1323,11 @@ begin
|
|
Inc(Len);
|
|
Inc(Len);
|
|
end;
|
|
end;
|
|
end;
|
|
end;
|
|
|
|
+
|
|
|
|
+ If (TStringSplitOptions.ExcludeLastEmpty=Options) then
|
|
|
|
+ if (Len > 0) and (Result[Len-1] = '') then
|
|
|
|
+ dec(Len);
|
|
|
|
+
|
|
SetLength(Result,Len);
|
|
SetLength(Result,Len);
|
|
end;
|
|
end;
|
|
|
|
|