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