Example #1
0
 public RegexFullInfo(string regexPattern, RegexOptions regexOptions,
                      string input,
                      string replacement, bool allEmptyReplacement,
                      string template, TemplateParameters tplParams)
     : base(regexPattern, regexOptions, input, replacement, allEmptyReplacement)
 {
     this.Template      = template ?? string.Empty;
     this.TplParameters = tplParams ?? new TemplateParameters();
 }
Example #2
0
 public RegexTemplateInfo(string regexPattern,
                          RegexOptions regexOptions,
                          string input,
                          string template,
                          TemplateParameters tplParams)
     : base(regexPattern, regexOptions, input)
 {
     this.Template      = template ?? string.Empty;
     this.TplParameters = tplParams ?? new TemplateParameters();
 }
Example #3
0
        public TemplateResultParameter(TemplateParameters tp, string template)
        {
            //var oi = new OrderInfo() { Group = "$0", OrderType = OrderOption.Asc };
            this.OrderInfo = tp.OrderInfo ?? new OrderInfo()
            {
                OrderType = OrderOption.None
            };
            this.BatchInfo           = tp.BatchInfo;
            this.RowNumberDelimeters = tp.RowNumberDelimiter;

            AnalyzeBemplate(template);
        }