/// <summary> /// Adds a new replace rule that replaces with the result of the given callback. /// </summary> public ReplaceRule AddReplace(string inId, ReplaceSourceContextDelegate inReplace) { CheckLocked(); ReplaceRule rule = FindOrCreateReplaceRule(inId); rule.ReplaceWith(inReplace); return(rule); }
/// <summary> /// Adds a new replace rule that replaces with the given text. /// </summary> public ReplaceRule AddReplace(string inId, string inReplaceWith) { CheckLocked(); ReplaceRule rule = FindOrCreateReplaceRule(inId); rule.ReplaceWith(inReplaceWith); return(rule); }