Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 12:54:57

0001 #include "DetectorDescription/Core/interface/DDSplit.h"
0002 
0003 std::pair<std::string, std::string> DDSplit(const std::string& n) {
0004   std::string name, ns;
0005   std::string::size_type pos = n.find(':');
0006   if (pos == std::string::npos) {
0007     ns = "";
0008     name = n;
0009   } else {
0010     ns = std::string(n, 0, pos);
0011     name = std::string(n, pos + 1, n.size() - 1);
0012   }
0013   return std::make_pair(name, ns);
0014 }