remove whitespace at begin and end of string
remove whitespace at beginning and end of string
Definition at line 82 of file helper.cc.
86 string::size_type ib=s.find_first_not_of(
" ", 0);
93 string::size_type il=s.find_last_not_of(
" \r", s.length());
94 string::size_type n=il>=ib ? il-ib+1 : 0;
96 if ((ib!=0) || (n!=s.length())) { s=s.substr(ib,n); }