diff options
-rw-r--r-- | src/corelib/fpg_utils.pas | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/corelib/fpg_utils.pas b/src/corelib/fpg_utils.pas index 107fb262..a53c7efe 100644 --- a/src/corelib/fpg_utils.pas +++ b/src/corelib/fpg_utils.pas @@ -58,6 +58,7 @@ function fpgExtractFilePath(const FileName: TfpgString): TfpgString; function fpgExtractFileName(const FileName: TfpgString): TfpgString; function fpgExtractFileExt(const FileName: TfpgString): TfpgString; function fpgForceDirectories(const ADirectory: TfpgString): Boolean; +function fpgChangeFileExt(const FileName, Extension: TfpgString): TfpgString; implementation @@ -151,6 +152,11 @@ begin Result := ForceDirectories(fpgToOSEncoding(ADirectory)); end; +function fpgChangeFileExt(const FileName, Extension: TfpgString): TfpgString; +begin + Result := ChangeFileExt(fpgToOSEncoding(Filename), Extension); +end; + function fpgAppendPathDelim(const Path: TfpgString): TfpgString; begin if (Path <> '') and (Path[length(Path)] <> PathDelim) then |