mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-11 19:25:58 +02:00
* Fix split, last term of length 1 is sometimes missed
git-svn-id: trunk@39843 -
This commit is contained in:
parent
01790c4e46
commit
a7278c1806
@ -1304,7 +1304,7 @@ begin
|
|||||||
LastSep:=Sep+System.Length(Separators[Match]);
|
LastSep:=Sep+System.Length(Separators[Match]);
|
||||||
Sep:=NextSep(LastSep,Match);
|
Sep:=NextSep(LastSep,Match);
|
||||||
end;
|
end;
|
||||||
if (LastSep<Length-1) and ((ACount=0) or (Len<ACount)) then
|
if (LastSep<Length) and ((ACount=0) or (Len<ACount)) then
|
||||||
begin
|
begin
|
||||||
T:=SubString(LastSep);
|
T:=SubString(LastSep);
|
||||||
// Writeln('Examining >',T,'< at pos,',LastSep,' till pos ',Sep);
|
// Writeln('Examining >',T,'< at pos,',LastSep,' till pos ',Sep);
|
||||||
|
Loading…
Reference in New Issue
Block a user