File indexing completed on 2024-04-06 12:13:12
0001 #ifndef FWCore_Utilities_RegexMatch_h
0002 #define FWCore_Utilities_RegexMatch_h
0003
0004 #include <regex>
0005 #include <string>
0006 #include <vector>
0007
0008 namespace edm {
0009
0010 bool untaintString(char const* pattern, char const* regexp);
0011
0012 bool is_glob(std::string const& pattern);
0013
0014 std::string glob2reg(std::string const& pattern);
0015
0016 std::vector<std::vector<std::string>::const_iterator> regexMatch(std::vector<std::string> const& strings,
0017 std::regex const& regexp);
0018
0019 std::vector<std::vector<std::string>::const_iterator> regexMatch(std::vector<std::string> const& strings,
0020 std::string const& pattern);
0021 }
0022
0023 #endif