Example #1
0
 public bool PlusRepeat(OptimizedCharset charset)
 {
     int pos0 = pos_;
     for (; pos_ < srcLen_ && charset.Matches(src_[pos_]); ++pos_) ;
     return pos_ > pos0;
 }
Example #2
0
 public bool OneOf(OptimizedCharset cset)
 {
     if (pos_ < srcLen_ && cset.Matches(src_[pos_]))
     {
         ++pos_; return true;
     }
     return false;
 }
Example #3
0
 public bool OptRepeat(OptimizedCharset charset)
 {
     for (; pos_ < srcLen_ && charset.Matches(src_[pos_]); ++pos_) ;
     return true;
 }