From 4ffcceaf8744f8621e505f2a566f72b4f942f020 Mon Sep 17 00:00:00 2001 From: Graeme Geldenhuys Date: Mon, 23 Nov 2009 22:52:46 +0200 Subject: Added implementation of fpgExtractFileName() --- src/corelib/fpg_utils.pas | 6 ++++++ 1 file changed, 6 insertions(+) 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 -- cgit v1.2.3-70-g09d2