mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-22 00:09:25 +02:00
* Add ChangeFilePath
This commit is contained in:
parent
76909f0894
commit
9f62b33ef0
@ -37,6 +37,12 @@ begin
|
||||
Result := Copy(FileName, 1, I - 1) + Extension;
|
||||
end;
|
||||
|
||||
function ChangeFilePath(const aFileName,aPath: PathStr): PathStr;
|
||||
begin
|
||||
Result:=IncludeTrailingPathDelimiter(aPath)+ExtractFileName(aFileName);
|
||||
end;
|
||||
|
||||
|
||||
function ExtractFilePath(const FileName: PathStr): PathStr;
|
||||
var
|
||||
i : longint;
|
||||
|
@ -21,6 +21,7 @@ type
|
||||
{$endif}
|
||||
|
||||
function ChangeFileExt(const FileName, Extension: PathStr): PathStr;
|
||||
function ChangeFilePath(const aFileName,aPath: PathStr): PathStr;
|
||||
function ExtractFilePath(const FileName: PathStr): PathStr;
|
||||
function ExtractFileDrive(const FileName: PathStr): PathStr;
|
||||
function ExtractFileName(const FileName: PathStr): PathStr;
|
||||
|
Loading…
Reference in New Issue
Block a user