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  {
6  if (useRegex_)
7 #ifdef CPP11_STD_AVAILABLE
8  return std::regex_match(sentence.begin(), sentence.end(), regex_);
9 #else
10  return regex_.matches(sentence);
11 #endif
12  else
13  return sentence == tag_;
14  }
15 }
Definition: AbsArchive.cc:53