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
Definition: AbsArchive.cc:46