Example #1
0
 void intersect_any (basic_string_token &rhs_, basic_string_token &overlap_)
 {
     if (rhs_._negated)
     {
         rhs_.intersect_negated (*this, overlap_);
     }
     else // rhs._negated == false
     {
         rhs_.intersect_charset (*this, overlap_);
     }
 }
Example #2
0
 void intersect_negated (basic_string_token &rhs_,
     basic_string_token &overlap_)
 {
     if (rhs_.any ())
     {
         overlap_._negated = true;
         overlap_._charset = _charset;
         rhs_._negated = false;
         rhs_._charset = _charset;
         clear ();
     }
     else // rhs._negated == false
     {
         rhs_.intersect_charset (*this, overlap_);
     }
 }