1. bug in wxString::find_first_of() fixed
2. new wxStringTokenizer class and the docs for it git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@5766 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -1596,7 +1596,7 @@ size_t wxString::find_first_of(const wxChar* sz, size_t nStart) const
|
||||
const wxChar *start = c_str() + nStart;
|
||||
const wxChar *firstOf = wxStrpbrk(start, sz);
|
||||
if ( firstOf )
|
||||
return firstOf - start;
|
||||
return firstOf - c_str();
|
||||
else
|
||||
return npos;
|
||||
}
|
||||
|
Reference in New Issue
Block a user