Le Vendredi 06 Juin 2003 00:13, Andreas Pflug a écrit :
> RCS file: /pack/cvsroots/wxwindows/wxWindows/src/common/string.cpp,v
> retrieving revision 1.172
> diff -r1.172 string.cpp
> 269a270
>
> > m_pchData[nLen] = 0;
Hi Andreas,
Could you submit a patch in diff -u format? I don't have enough context to
apply it. What CVS version are you using?
Cheers,
Jean-Michel
****************************************************************************************
int wxString::Find(wxChar ch, bool bFromEnd) const
{
const wxChar *psz = bFromEnd ? wxStrrchr(m_pchData, ch) :
wxStrchr(m_pchData, ch);
return (psz == NULL) ? wxNOT_FOUND : psz - (const wxChar*) m_pchData;
}
// find a sub-string (like strstr)
int wxString::Find(const wxChar *pszSub) const
{
const wxChar *psz = wxStrstr(m_pchData, pszSub);
return (psz == NULL) ? wxNOT_FOUND : psz - (const wxChar*) m_pchData;
}