/// <summary> /// Static helper that applies replacements from the passed dictionary object to the /// target Unifiable /// </summary> /// <param name="bot">The bot for whom this is being processed</param> /// <param name="dictionary">The dictionary containing the substitutions</param> /// <param name="target">the target Unifiable to which the substitutions are to be applied</param> /// <returns>The processed Unifiable</returns> public static string Substitute(ISettingsDictionary dictionary, string target) { if (dictionary == null) { return(target); } string marker = ApplySubstitutions.getMarker(5); string markerSP = ApplySubstitutions.getMarker(3); string result = " " + Unifiable.ToVMString(target) + " "; result = SubstituteResults(dictionary, marker, markerSP, result, false); return(result.Replace(marker, "").Replace(markerSP, " ")); }
protected override Unifiable ProcessChangeU() { //if (InputStringUU != null) return InputStringUU; return(ApplySubstitutions.Substitute(substs.InputSubstitutions, this.InputStringU)); }