mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-06-04 22:03:29 -06:00
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:
parent
97c8b13bbe
commit
ccd44c8cfb
1 changed files with 2 additions and 2 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue