CMS 3D CMS Logo

DDSplit.cc
Go to the documentation of this file.
2 
3 std::pair<std::string,std::string> DDSplit(const std::string & n)
4 {
5  std::string name,ns;
6  std::string::size_type pos = n.find(':');
7  if (pos==std::string::npos) {
8  ns = "";
9  name = n;
10  }
11  else {
12  ns = std::string(n,0,pos);
13  name = std::string(n,pos+1,n.size()-1);
14  }
15  return std::make_pair(name,ns);
16 }
uint16_t size_type
std::pair< std::string, std::string > DDSplit(const std::string &n)
split into (name,namespace), separator = &#39;:&#39;
Definition: DDSplit.cc:3