Beispiel #1
0
 public bool IsCharSetEqual(string input, RegexNode node)
 {
     var parser = new Parser(input);
     var exp = parser.ParseExpression();
     var sets = new FlatSet<CharRange>();
     exp.NormalizeCharSet(out sets);
     return exp.Equals(node.Exp);
 }
Beispiel #2
0
        public static RegexNode GetCapture(string name, RegexNode node)
        {
            var expression = new CaptureExpression(name, node.Exp);

            return(new RegexNode(expression));
        }
Beispiel #3
0
 public static RegexNode GetCapture(string name,RegexNode node)
 {
     var expression = new CaptureExpression(name, node.Exp);
     return new RegexNode(expression);
 }
Beispiel #4
0
 public bool IsEqual(string input,RegexNode node)
 {
     var parser = new Parser(input);
     var exp = parser.ParseExpression();
     return exp.Equals(node.Exp);
 }