public override string replaceForCurrentValues(string aString) { foreach (KeyValuePair <string, string> vp in this.currentSet()) { //REPLACED BY EXPLODER BELOW AT 20150325: aString = aString.Replace("$"+vp.Key, vp.Value); aString = BatchCreator.replaceKeyValues(aString, vp.Key, vp.Value); //Console.WriteLine("REPLACE"+"$"+vp.Key +"TO "+ vp.Value); //aString = aString.Replace("\""+vp.Key+"\"", "\"_REM:q_"+vp.Key+"\""); } return(aString); }
public override string replaceForCurrentFilenameValues(string aString) { return(BatchCreator.replaceKeyValues(aString, this.name, this.getCurrentFilenameValue())); //return aString.Replace("$"+this.name, this.getCurrentFilenameValue()); }
public string replaceVariables(string source, string key, string value) { return(BatchCreator.replaceKeyValues(source, key, value)); }