]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/filename.cpp
added wxMouseEventsManager
[wxWidgets.git] / src / common / filename.cpp
index 7db00dc4a94051bc634f0001290a7ac94dcce413..f16ae7127bf9ab7af950bd6d2e656d52b2bb1371 100644 (file)
@@ -2261,6 +2261,14 @@ void wxFileName::SplitPath(const wxString& fullpath,
     }
 }
 
+/* static */
+wxString wxFileName::StripExtension(const wxString& fullpath)
+{
+    wxFileName fn(fullpath);
+    fn.SetExt("");
+    return fn.GetFullPath();
+}
+
 // ----------------------------------------------------------------------------
 // time functions
 // ----------------------------------------------------------------------------