示例#1
0
 protected void Compile(string wc, string wcClass, string specials, REFlags flags)
 {
     string converted = ConvertSpecials(wc, wcClass, specials);
     try {
         Compile(converted,flags);
     } catch(PatternSyntaxException e) {
         throw new System.Exception(e.Message+"; original expr: "+wc+", converted: "+converted);
     }
     str=wc;
 }
示例#2
0
文件: Pattern.cs 项目: olabini/nregex
 public Pattern(string regex, REFlags flags)
 {
     Compile(regex,flags);
 }
示例#3
0
 public WildcardPattern(string wc, string wcClass, REFlags flags)
 {
     Compile(wc, wcClass, defaultSpecials, flags);
 }
示例#4
0
文件: Pattern.cs 项目: olabini/nregex
 protected void Compile(string regex, REFlags flags)
 {
     stringRepr=regex;
     Term.MakeTree(regex,flags,this);
 }