Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 11:56:21

0001 #include "Alignment/Geners/interface/SearchSpecifier.hh"
0002 
0003 namespace gs {
0004   bool SearchSpecifier::matches(const std::string &sentence) const {
0005     if (useRegex_)
0006 #ifdef CPP11_STD_AVAILABLE
0007       return std::regex_match(sentence.begin(), sentence.end(), regex_);
0008 #else
0009       return regex_.matches(sentence);
0010 #endif
0011     else
0012       return sentence == tag_;
0013   }
0014 }  // namespace gs