Core: Fixed String::ReverseFind with empty string

git-svn-id: svn://ultimatepp.org/upp/trunk@6211 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
cxl 2013-07-25 13:47:38 +00:00
parent 97c8b13bbe
commit ccd44c8cfb

View file

@ -92,8 +92,8 @@ public:
int ReverseFind(int len, const tchar *s, int from) const;
int ReverseFind(const tchar *s, int from) const;
int ReverseFind(const String& s, int from) const { return ReverseFind(s.GetCount(), ~s, from); }
int ReverseFind(const tchar *s) const { return ReverseFind(s, GetLength()-1);}
int ReverseFind(const String& s) const { return ReverseFind(s, GetLength()-1);}
int ReverseFind(const tchar *s) const { return GetLength() ? ReverseFind(s, GetLength()-1) : -1;}
int ReverseFind(const String& s) const { return GetLength() ? ReverseFind(s, GetLength()-1) : -1;}
void Replace(const tchar *find, int findlen, const tchar *replace, int replacelen);
void Replace(const String& find, const String& replace);