Fixed wxFileSystem_URLToFileName and FileNameToURL

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@21977 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robin Dunn
2003-07-14 19:17:35 +00:00
parent 1d5d2fcfd4
commit 80af91bba4

View File

@@ -141,13 +141,23 @@ public:
static void AddHandler(wxFileSystemHandler *handler); static void AddHandler(wxFileSystemHandler *handler);
static void CleanUpHandlers(); static void CleanUpHandlers();
// // Returns the native path for a file URL // Returns the file URL for a native path
// static wxFileName URLToFileName(const wxString& url); static wxString FileNameToURL(const wxString& filename);
// // Returns the file URL for a native path // Returns the native path for a file URL
// static wxString FileNameToURL(const wxFileName& filename); //static wxFileName URLToFileName(const wxString& url); *** See below
}; };
// Returns the native path for a file URL
wxString wxFileSystem_URLToFileName(const wxString& url);
%{
wxString wxFileSystem_URLToFileName(const wxString& url) {
wxFileName fname = wxFileSystem::URLToFileName(url);
return fname.GetFullPath();
}
%}
//--------------------------------------------------------------------------- //---------------------------------------------------------------------------
class wxInternetFSHandler : public wxFileSystemHandler { class wxInternetFSHandler : public wxFileSystemHandler {