Esempio n. 1
0
 public string MatchEvaluator(Match m)
 {
     return(RegExpPrototype.InvokeReplacementCallback(replacement, new MatchResult(re, input, m, null, 0)));
 }
Esempio n. 2
0
 /// <summary>
 /// Replaces occurences of substrings that matches the pattern by the value returned from the invocation of pipe function argument.
 /// </summary>
 /// <param name="input">Input string.</param>
 /// <param name="replacement">A pipe function argument.</param>
 /// <returns></returns>
 public string Replace(string input, RuntimeObject replacement)
 {
     return(ReplaceInternal(input, m => RegExpPrototype.InvokeReplacementCallback(replacement, new MatchResult(this, input, m, null, 0))));
 }