mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-29 19:20:38 +02:00
* Fixed ExcludeLeadingPathDelimiter
git-svn-id: trunk@19316 -
This commit is contained in:
parent
c0995c2ffd
commit
908f9865d4
@ -292,10 +292,10 @@ Var
|
|||||||
L : Integer;
|
L : Integer;
|
||||||
|
|
||||||
begin
|
begin
|
||||||
L:=Length(Path);
|
Result:=Path;
|
||||||
If (L>0) and (Path[1] in AllowDirectorySeparators) then
|
L:=Length(Result);
|
||||||
Dec(L);
|
If (L>0) and (Result[1] in AllowDirectorySeparators) then
|
||||||
Result:=Copy(Path,2,L);
|
Delete(Result,1,1);
|
||||||
end;
|
end;
|
||||||
|
|
||||||
function IsPathDelimiter(Const Path: string; Index: Integer): Boolean;
|
function IsPathDelimiter(Const Path: string; Index: Integer): Boolean;
|
||||||
|
Loading…
Reference in New Issue
Block a user