119 string strbuff(
reinterpret_cast<const char*
>(evbuffer),
sizeof(
UInt_t) * nlen);
122 string::size_type pos = strbuff.find(
'\0');
123 if( pos != string::npos )
127 cout <<
"Check THaUsrstrutils::string_from_buffer "<<endl;
128 cout <<
"strbuff length "<<strbuff.length()<<endl;
129 cout <<
"strbuff == \n"<<strbuff<<endl<<endl;
141 string::size_type buflen = strbuff.length();
142 while( pos < buflen ) {
144 string::size_type pos1 = strbuff.find(
'\n', pos);
146 cout <<
"strbuff parse pos,pos1,line=" << pos <<
"," << pos1
147 <<
",\"" << strbuff.substr(pos, pos1 - pos) <<
"\"" << endl;
149 string sline = strbuff.substr(pos, pos1 - pos);
154 if(
p != string::npos )
157 auto it = find_if_not(sline.begin(), sline.end(),
158 static_cast<int(*)(
int)
>(isspace));
159 if( it != sline.end() ) {
161 auto textstart = distance(sline.begin(), it);
166 if( pos1 == string::npos )
172 cout <<
"configstr = " <<
configstr << endl;