test/processingMeasures.cpp
// A helper function to extract numbers from a line
// from pos, to next ',' extract a cell, return the field, and new pos
A helper function to extract numbers from a line
from pos, to next ',' extract a cell, return the field, and new pos
A helper function to extract numbers from a line from pos to next ' ' extract a cell return the field and new pos
static string extractOneCell(string& line, size_t& pos)
{
  size_t end=pos; 
  while (end<line.size() && line[end]!=',')
    end++; 
  string res= line.substr(pos, end-pos);
  pos=end+1; 
  return res; 
}
static string extractOneCell ( string & line , size_t & pos ) { size_t end = pos ; while ( end < line . size ( ) && line [ end ] != ' ' ) end ++ ; string res = line . substr ( pos , end - pos ) ; pos = end + 1 ; return res ; }
A helper function to extract numbers from a line
from pos, to next ',' extract a cell, return the field, and new pos
A helper function to extract numbers from a line from pos to next ' ' extract a cell return the field and new pos
// now end is end or ,  //  cout<<"start pos:"<<pos << "--end pos:"<< end <<endl;