We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 75f4e22 commit dc76f47Copy full SHA for dc76f47
src/framework/NetString.h
@@ -184,18 +184,18 @@ namespace System
184
String newstring=(*this);
185
186
while (pos!=-1){
187
- newstring.str().replace(pos,pos+from.Length(),with.str());
+ newstring.m_str.replace(pos,pos+from.Length(),with.str());
188
189
int lastpos = pos;
190
pos=newstring.IndexOf(from);
191
192
// try to prevent it going infinite
193
if (pos < lastpos){
194
- pos=-1;
+ break;
195
}
196
197
198
- return from;
+ return newstring;
199
200
201
String Trim() const
0 commit comments