FACT++  1.0
string CompressedFitsFile::HeaderEntry::Trim ( const string &  str,
char  c = ' ' 
)
inline

From fits.h

Definition at line 58 of file fitsDecompressor.cc.

59  {
60  // Trim Both leading and trailing spaces
61  const size_t pstart = str.find_first_not_of(c); // Find the first character position after excluding leading blank spaces
62  const size_t pend = str.find_last_not_of(c); // Find the first character position from reverse af
63 
64  // if all spaces or empty return an empty string
65  if (string::npos==pstart || string::npos==pend)
66  return string();
67 
68  return str.substr(pstart, pend-pstart+1);
69  }
char str[80]
Definition: test_client.c:7