X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/110c50944f08b0e52313c57d4f10a5f1d0923227..d0f063020e6fb1b1a660952d0844071e0df24324:/include/wx/filename.h diff --git a/include/wx/filename.h b/include/wx/filename.h index 7a7593c6d6..bdf955e064 100644 --- a/include/wx/filename.h +++ b/include/wx/filename.h @@ -519,6 +519,9 @@ public: wxString *path, wxPathFormat format = wxPATH_NATIVE); + // strip the file extension: "foo.bar" => "foo" (but ".baz" => ".baz") + static wxString StripExtension(const wxString& fullpath); + #ifdef wxHAS_FILESYSTEM_VOLUMES // return the string representing a file system volume, or drive static wxString GetVolumeString(char drive, int flags = wxPATH_GET_SEPARATOR);