There are messages like:
Param0 = 0, Param1 = 2, Vec4;int;
You need to parse so that at the output you get the value of Param1, that is 2, now the parsh is:
std::string string_parse( std::string message , char start , char end ) { std::string temp; std::stringstream strstream( message ); if(!std::getline( strstream , temp , start ) || !std::getline( strstream , temp , end ) ) return ""; return temp; }
The problem is that char takes only 1 character, but you need to parse right off the line, i.e.
std::string msg = "Param0 = 0, Param1 = 2, Vec4;int;"; std::string param1 = string_parse(msg, "Param1 ="/*первый сплиттер*/, ", Vec4"/*второй*/); // param1 должно получится "2"