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; }
public Pattern(string regex, REFlags flags) { Compile(regex,flags); }
public WildcardPattern(string wc, string wcClass, REFlags flags) { Compile(wc, wcClass, defaultSpecials, flags); }
protected void Compile(string regex, REFlags flags) { stringRepr=regex; Term.MakeTree(regex,flags,this); }