}
}
+
+ //=========================================================================
+ //JPR
+ void GBoxModel::addColons(std::string &text)
+ {
+ printf("EED JPR >>>>>>>>>>>>>>> %s\n",text.c_str() );
+ std::string character("&&2P&&");
+ size_t pos;
+ pos = text.find(character);
+ while(pos != std::string::npos)
+ {
+ //We replace the character "&&2P&&" with ":" for all the string
+ text.replace(pos, character.length(),":");
+ pos = text.find(character, pos);
+ }
+ }
+
+ //=========================================================================
+ //JPR
+ void GBoxModel::removeColons(std::string &text)
+ {
+ std::string character(":");
+ size_t pos;
+ pos = text.find(character);
+ while(pos != std::string::npos)
+ {
+ //We replace the character ":" with "&&2P&&" for all the string
+ text.replace(pos, character.length(),"&&2P&&");
+ pos = text.find(character, pos);
+ }
+ }
+
//=========================================================================