CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
DDSplit.cc
Go to the documentation of this file.
2 
3 std::pair<std::string, std::string> DDSplit(const std::string& n) {
4  std::string name, ns;
5  std::string::size_type pos = n.find(':');
6  if (pos == std::string::npos) {
7  ns = "";
8  name = n;
9  } else {
10  ns = std::string(n, 0, pos);
11  name = std::string(n, pos + 1, n.size() - 1);
12  }
13  return std::make_pair(name, ns);
14 }
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