2 #include "cetlib/exempt_ptr.h" 3 #include "cetlib/split_by_regex.h" 15 std::vector<std::string>
18 std::regex
const r_index{
"\\[(\\d+)\\]"};
19 std::vector<std::string> parents;
20 for (
auto const& key : cet::split_by_regex(k,
"\\."))
21 for (
auto const& token :
22 cet::split_by_regex(std::regex_replace(key, r_index,
",$1"),
","))
23 parents.push_back(token);
27 return std::vector<std::string>(parents.begin() + 1, parents.end());
std::vector< std::string > get_parents(std::string const &k)