using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace SQLFormatter
{
class SqlUtil
{
public static String replace(String argTargetString, String argFrom, String argTo) {
String newStr = "";
int lastpos = 0;
for (;;) {
int pos = argTargetString.IndexOf(argFrom, lastpos);
if (pos == -1) {
break;
}
newStr += argTargetString.Substring(lastpos, pos);
newStr += argTo;
lastpos = pos + argFrom.Length;
}
return newStr + argTargetString.Substring(lastpos);
}
}
}