2 // This file is (C) 2004 Royce Mitchell III
3 // and released under the BSD & LGPL licenses
7 std::string
trim ( const std::string
& s
)
10 const char* p2
= p
+ s
.size();
13 while ( p2
> p
&& p2
[-1] == ' ' )
15 return std::string ( p
, p2
-p
);