Exemplo n.º 1
0
        private string ReplacementText(ISearchResult result)
        {
            var replacement = txtReplace.Text;

            if (_mode == SearchMode.Extended || _mode == SearchMode.RegEx)
            {
                replacement = StringHelper.StringFromCSharpLiteral(replacement);
            }
            return(result.ReplaceWith(replacement));
        }
Exemplo n.º 2
0
 private string ReplacementText(ISearchResult result)
 {
   var replacement = txtReplace.Text;
   if (_mode == SearchMode.Extended || _mode == SearchMode.RegEx)
     replacement = StringHelper.StringFromCSharpLiteral(replacement);
   return result.ReplaceWith(replacement);
 }