summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/corelib/fpg_utils.pas6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/corelib/fpg_utils.pas b/src/corelib/fpg_utils.pas
index c583494e..ec22b478 100644
--- a/src/corelib/fpg_utils.pas
+++ b/src/corelib/fpg_utils.pas
@@ -54,6 +54,7 @@ function fpgFileExists(const FileName: TfpgString): Boolean;
function fpgDirectoryExists(const ADirectory: TfpgString): Boolean;
function fpgExtractFileDir(const FileName: TfpgString): TfpgString;
function fpgExtractFilePath(const FileName: TfpgString): TfpgString;
+function fpgExtractFileName(const FileName: TfpgString): TfpgString;
implementation
@@ -132,6 +133,11 @@ begin
Result := ExtractFilePath(fpgToOSEncoding(Filename));
end;
+function fpgExtractFileName(const FileName: TfpgString): TfpgString;
+begin
+ Result := ExtractFileName(fpgToOSEncoding(Filename));
+end;
+
function fpgAppendPathDelim(const Path: TfpgString): TfpgString;
begin
if (Path <> '') and (Path[length(Path)] <> PathDelim) then