FACT++
1.0
Main Page
Related Pages
Namespaces
Classes
Files
Examples
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
}
str
char str[80]
Definition:
test_client.c:7
CompressedFitsFile
HeaderEntry
Generated on Sun Sep 18 2016 20:50:43 for FACT++ by
1.8.11