LArSoft  v06_85_00
Liquid Argon Software toolkit - http://larsoft.org/
RegexMatch.h
Go to the documentation of this file.
1 // functions shared between the art::EventSelector and the HLTHighLevel filter
2 
3 #ifndef art_Utilities_RegexMatch_h
4 #define art_Utilities_RegexMatch_h
5 
6 #include <regex>
7 #include <string>
8 #include <vector>
9 
10 // ----------------------------------------------------------------------
11 
12 namespace art {
13 
14  bool is_glob(std::string const& pattern);
15 
16  std::string glob2reg(std::string pattern);
17 
19  std::vector<std::string> const& strings,
20  std::regex const& regexp);
21 
23  std::vector<std::string> const& strings,
24  std::string const& pattern);
25 
26 } // art
27 
28  // ======================================================================
29 
30 #endif /* art_Utilities_RegexMatch_h */
31 
32 // Local Variables:
33 // mode: c++
34 // End:
std::vector< std::vector< std::string >::const_iterator > regexMatch(std::vector< std::string > const &strings, std::regex const &regexp)
Definition: RegexMatch.cc:27
intermediate_table::const_iterator const_iterator
std::string glob2reg(std::string pattern)
Definition: RegexMatch.cc:19
HLT enums.
bool is_glob(std::string const &pattern)
Definition: RegexMatch.cc:13