mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-07-11 22:03:01 -06:00
Core: Fixed String::Replace(String(), ..) issue
git-svn-id: svn://ultimatepp.org/upp/trunk@7346 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
parent
17c93ae2b3
commit
42adbc69e4
2 changed files with 3 additions and 1 deletions
|
|
@ -94,6 +94,8 @@ int AString<B>::ReverseFind(int len, const tchar *s, int from) const
|
|||
template <class B>
|
||||
void AString<B>::Replace(const tchar *find, int findlen, const tchar *replace, int replacelen)
|
||||
{
|
||||
if(findlen == 0)
|
||||
return;
|
||||
String r;
|
||||
int i = 0;
|
||||
const tchar *p = B::Begin();
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@
|
|||
#include "Draw/init"
|
||||
#include "plugin\bmp/init"
|
||||
#include "RichText/init"
|
||||
#define BLITZ_INDEX__ F656a4ea94e4f808b1ec63034b0e6c5ac
|
||||
#define BLITZ_INDEX__ Fe2ff541f9bb9f4ad3f5bcc23a34e1b73
|
||||
#include "CtrlCore.icpp"
|
||||
#undef BLITZ_INDEX__
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue