LArSoft  v06_85_00
Liquid Argon Software toolkit - http://larsoft.org/
parse_path_spec.cc
Go to the documentation of this file.
2 
3 #include <algorithm>
4 #include <string>
5 #include <utility>
6 
7 using namespace std;
8 
9 void
11 {
12  s.erase(remove(s.begin(), s.end(), ' '), s.end());
13  s.erase(remove(s.begin(), s.end(), '\t'), s.end());
14 }
15 
16 void
17 art::detail::parse_path_spec(string path, pair<string, string>& pname_path)
18 {
20  auto const pos = path.find(":");
21  if (pos == string::npos) {
22  pname_path = std::make_pair("", path);
23  return;
24  }
25  pname_path = make_pair(path.substr(0, pos), path.substr(pos + 1));
26 }
Float_t s
Definition: plot.C:23
STL namespace.
void parse_path_spec(std::string path_spec, std::pair< std::string, std::string > &output)
void remove_whitespace(std::string &)