CMS 3D CMS Logo

SearchSpecifier.cc
Go to the documentation of this file.
1 #include "Alignment/Geners/interface/SearchSpecifier.hh"
2 
3 namespace gs {
4  bool SearchSpecifier::matches(const std::string &sentence) const {
5  if (useRegex_)
6 #ifdef CPP11_STD_AVAILABLE
7  return std::regex_match(sentence.begin(), sentence.end(), regex_);
8 #else
9  return regex_.matches(sentence);
10 #endif
11  else
12  return sentence == tag_;
13  }
14 } // namespace gs
gs
Definition: AbsArchive.cc:45
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
patCandidatesForDimuonsSequences_cff.matches
matches
Definition: patCandidatesForDimuonsSequences_cff.py:131