summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGraeme Geldenhuys <graemeg@gmail.com>2013-03-18 10:35:36 +0000
committerDavid Laurence Emerson <dle3ab@angelbase.com>2013-05-28 00:42:48 -0700
commit4559f9a96432e78351edcaefc5dbe929887e6a38 (patch)
tree7d5649700e746ada20246ebf5d0de5deeef727fb /src
parentfee23821f735f998a7a7c13210eb69d54b7050e9 (diff)
downloadfpGUI-4559f9a96432e78351edcaefc5dbe929887e6a38.tar.xz
utils: Adds a new RTL wrapper to handle UTF-8 path names correctly.
Diffstat (limited to 'src')
-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 dcc0cf71..9d0e907d 100644
--- a/src/corelib/fpg_utils.pas
+++ b/src/corelib/fpg_utils.pas
@@ -63,6 +63,7 @@ function fpgExtractFileDir(const FileName: TfpgString): TfpgString;
function fpgExtractFilePath(const FileName: TfpgString): TfpgString;
function fpgExtractFileName(const FileName: TfpgString): TfpgString;
function fpgExtractFileExt(const FileName: TfpgString): TfpgString;
+function fpgExtractRelativepath(const ABaseName, ADestName: TfpgString): TfpgString;
function fpgForceDirectories(const ADirectory: TfpgString): Boolean;
function fpgChangeFileExt(const FileName, Extension: TfpgString): TfpgString;
function fpgGetAppConfigDir(const Global: Boolean): TfpgString;
@@ -164,6 +165,11 @@ begin
Result := ExtractFileExt(fpgToOSEncoding(Filename));
end;
+function fpgExtractRelativepath(const ABaseName, ADestName: TfpgString): TfpgString;
+begin
+ Result := ExtractRelativepath(fpgToOSEncoding(ABaseName), fpgToOSEncoding(ADestName));
+end;
+
function fpgForceDirectories(const ADirectory: TfpgString): Boolean;
begin
Result := ForceDirectories(fpgToOSEncoding(ADirectory));