mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-21 00:32:21 +02:00
# revisions: 44312,44313
git-svn-id: branches/fixes_3_2@45705 -
This commit is contained in:
parent
7717e2c92e
commit
a0f699ac3e
@ -29,7 +29,7 @@ function ExtractShortPathName(Const FileName : PathStr) : PathStr;
|
|||||||
function ExpandFileName (Const FileName : PathStr): PathStr;
|
function ExpandFileName (Const FileName : PathStr): PathStr;
|
||||||
function ExpandFileNameCase (const FileName: PathStr; out MatchFound: TFilenameCaseMatch): PathStr;
|
function ExpandFileNameCase (const FileName: PathStr; out MatchFound: TFilenameCaseMatch): PathStr;
|
||||||
function ExpandUNCFileName (Const FileName : PathStr): PathStr;
|
function ExpandUNCFileName (Const FileName : PathStr): PathStr;
|
||||||
function ExtractRelativePath (Const BaseName,DestNAme : PathStr): PathStr;
|
function ExtractRelativePath (Const BaseName,DestName : PathStr): PathStr;
|
||||||
function IncludeTrailingPathDelimiter(Const Path : PathStr) : PathStr;
|
function IncludeTrailingPathDelimiter(Const Path : PathStr) : PathStr;
|
||||||
function IncludeTrailingBackslash(Const Path : PathStr) : PathStr;
|
function IncludeTrailingBackslash(Const Path : PathStr) : PathStr;
|
||||||
function ExcludeTrailingBackslash(Const Path: PathStr): PathStr;
|
function ExcludeTrailingBackslash(Const Path: PathStr): PathStr;
|
||||||
|
@ -1225,9 +1225,12 @@ begin
|
|||||||
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);
|
||||||
MaybeGrow(Len);
|
If (T<>'') or (not (TStringSplitOptions.ExcludeEmpty=Options)) then
|
||||||
Result[Len]:=T;
|
begin
|
||||||
Inc(Len);
|
MaybeGrow(Len);
|
||||||
|
Result[Len]:=T;
|
||||||
|
Inc(Len);
|
||||||
|
end;
|
||||||
end;
|
end;
|
||||||
SetLength(Result,Len);
|
SetLength(Result,Len);
|
||||||
end;
|
end;
|
||||||
@ -1308,9 +1311,12 @@ begin
|
|||||||
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);
|
||||||
MaybeGrow(Len);
|
If (T<>'') or (not (TStringSplitOptions.ExcludeEmpty=Options)) then
|
||||||
Result[Len]:=T;
|
begin
|
||||||
Inc(Len);
|
MaybeGrow(Len);
|
||||||
|
Result[Len]:=T;
|
||||||
|
Inc(Len);
|
||||||
|
end;
|
||||||
end;
|
end;
|
||||||
SetLength(Result,Len);
|
SetLength(Result,Len);
|
||||||
end;
|
end;
|
||||||
|
Loading…
Reference in New Issue
Block a user