CMS 3D CMS Logo

RegexMatch.h
Go to the documentation of this file.
1 #ifndef FWCore_Utilities_RegexMatch_h
2 #define FWCore_Utilities_RegexMatch_h
3 
4 #include <regex>
5 #include <string>
6 #include <vector>
7 
8 namespace edm {
9 
10  bool untaintString(char const* pattern, char const* regexp);
11 
12  bool is_glob(std::string const& pattern);
13 
15 
16  std::vector<std::vector<std::string>::const_iterator> regexMatch(std::vector<std::string> const& strings,
17  std::regex const& regexp);
18 
19  std::vector<std::vector<std::string>::const_iterator> regexMatch(std::vector<std::string> const& strings,
20  std::string const& pattern);
21 } // namespace edm
22 
23 #endif // FWCore_Utilities_RegexMatch_h
bool is_glob(std::string const &pattern)
Definition: RegexMatch.cc:17
std::string glob2reg(std::string const &pattern)
Definition: RegexMatch.cc:19
bool untaintString(char const *pattern, char const *regexp)
Definition: RegexMatch.cc:12
std::vector< std::vector< std::string >::const_iterator > regexMatch(std::vector< std::string > const &strings, std::regex const &regexp)
Definition: RegexMatch.cc:26
HLT enums.