Exemple #1
0
 public string Replace(string input, PcreMatchEvaluator evaluator, PcreOptions options)
 {
     return Replace(input, evaluator, -1, 0, options);
 }
Exemple #2
0
 public string Replace(string input, PcreMatchEvaluator evaluator, int maxCount, PcreOptions options)
 {
     return Replace(input, evaluator, maxCount, 0, options);
 }
Exemple #3
0
 public string Replace(string input, PcreMatchEvaluator evaluator, int maxCount, int start)
 {
     return Replace(input, evaluator, maxCount, start, PcreOptions.NONE);
 }
Exemple #4
0
 public string Replace(string input, PcreMatchEvaluator evaluator)
 {
     return Replace(input, evaluator, -1, 0, PcreOptions.NONE);
 }
Exemple #5
0
        public string Replace(string input, PcreMatchEvaluator evaluator, int maxCount, int start, PcreOptions options)
        {
            var collection = Matches(input, start, options);
            int count;
            if (maxCount == -1)
            {
                count = collection.Count;
            }
            else
            {
                count = collection.GetMatch(maxCount) != null ? maxCount : collection.Count;
            }

            if (count == 0) return input;

            throw new NotImplementedException();
        }