Added wxString version of wxStripExtension; changed OnClose to return TRUE;

fixed some bad casts in resource.cpp


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@322 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Julian Smart
1998-07-22 13:54:47 +00:00
parent 9123006f13
commit 47fa796902
3 changed files with 61 additions and 16 deletions

View File

@@ -267,6 +267,21 @@ void wxStripExtension(char *buffer)
}
}
void wxStripExtension(wxString& buffer)
{
size_t len = buffer.Length();
size_t i = len-1;
while (i > 0)
{
if (buffer.GetChar(i) == '.')
{
buffer = buffer.Left(i);
break;
}
i --;
}
}
// Destructive removal of /./ and /../ stuff
char *wxRealPath (char *path)
{