implement deprecated wxStripExtension() in terms of new wxFileName::StripExtension() (closes #10634)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59868 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -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
|
||||
// ----------------------------------------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user