public RegexNode MakeQuantifier(bool lazy, int min, int max)
{
if (min == 0 && max == 0)
{
return(new RegexNode(Empty, Options));
}
if (min == 1 && max == 1)
{
return(this);
}
switch (NType)
{
case One:
case Notone:
case Set:
MakeRep(lazy ? Onelazy : Oneloop, min, max);
return(this);
default:
var result = new RegexNode(lazy ? Lazyloop : Loop, Options, min, max);
result.AddChild(this);
return(result);
}
}