public HtmlTypographerSettings Replace(string pattern, string replacement, StringReplacementMode mode, RegexOptions options) { StringReplacementRule rule = new StringReplacementRule(mode, pattern, replacement); rule.Options = options; Replacements.Add(rule); return(this); }
public StringReplacementRule(StringReplacementMode mode, string pattern, string replacement) { Precondition.Defined(pattern, () => Error.ArgumentNull("pattern")); _mode = mode; _pattern = pattern; _replacement = replacement; _options = RegexOptions.IgnoreCase | RegexOptions.Multiline | RegexOptions.Singleline; }
public HtmlTypographerSettings Replace(string pattern, string replacement, StringReplacementMode mode, RegexOptions options) { StringReplacementRule rule = new StringReplacementRule(mode, pattern, replacement); rule.Options = options; Replacements.Add(rule); return this; }
public HtmlTypographerSettings Replace(string pattern, string replacement, StringReplacementMode mode) { return Replace(pattern, replacement, mode, RegexOptions.None); }
public HtmlTypographerSettings Replace(string pattern, string replacement, StringReplacementMode mode) { return(Replace(pattern, replacement, mode, RegexOptions.None)); }