예제 #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);
 }
예제 #2
0
        public static RegexNode GetCapture(string name, RegexNode node)
        {
            var expression = new CaptureExpression(name, node.Exp);

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