LArSoft  v07_13_02
Liquid Argon Software toolkit - http://larsoft.org/
Name.cc
Go to the documentation of this file.
1 #include "fhiclcpp/types/Name.h"
2 #include <regex>
3 #include <string>
4 
5 namespace fhicl {
6 
7  std::string const
8  get_regex_replace_str(std::string const& istr)
9  {
10  static std::regex const r("\\[|\\]");
11  auto ostr = std::regex_replace(istr, r, "\\$&");
12  return ostr;
13  }
14 }
15 
16 // Local variables:
17 // mode: c++
18 // End:
std::string const get_regex_replace_str(std::string const &istr)
Definition: Name.cc:8
parameter set interface