コード例 #1
0
ファイル: RegexBasicInfo.cs プロジェクト: sw0/RegexTool
 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();
 }
コード例 #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();
 }
コード例 #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);
        }