FACT++  1.0
std::string Converter::Clean ( std::string  s)
static

This function is supposed to remove all whitespaces from the format string to allow easier regular expressions later.

Parameters
sstring to be cleaned
Returns
string cleaned from whitespaces

Definition at line 93 of file Converter.cc.

94 {
95  while (1)
96  {
97  const size_t pos = s.find_last_of(' ');
98  if (pos==string::npos)
99  break;
100  s.erase(pos, pos+1);
101  }
102 
103  return s;
104 }