1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
#include "Alignment/Geners/interface/SearchSpecifier.hh"
namespace gs {
bool SearchSpecifier::matches(const std::string &sentence) const {
if (useRegex_)
#ifdef CPP11_STD_AVAILABLE
return std::regex_match(sentence.begin(), sentence.end(), regex_);
#else
return regex_.matches(sentence);
#endif
else
return sentence == tag_;
}
} // namespace gs
|