CMS 3D CMS Logo

/data/refman/pasoursint/CMSSW_5_3_9_patch3/src/DetectorDescription/Core/src/DDSplit.cc

Go to the documentation of this file.
00001 
00002 #include "DetectorDescription/Core/interface/DDSplit.h"
00003 
00004 std::pair<std::string,std::string> DDSplit(const std::string & n) 
00005 {
00006   std::string name,ns;
00007   std::string::size_type pos = n.find(':');
00008   if (pos==std::string::npos) {
00009     ns = "";
00010     name = n;
00011   }
00012   else {
00013     ns = std::string(n,0,pos);
00014     name = std::string(n,pos+1,n.size()-1);
00015   }    
00016   return std::make_pair(name,ns);
00017 }
00018