Update of /cvsroot/boost/boost/libs/wave/test/testwave
In directory
sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv2018/libs/wave/test/testwave
Modified Files:
testwave_app.cpp
Log Message:
Stripped leading and trailing whitespace for all lines in a config file (Wave
driver tool).
Index: testwave_app.cpp
===================================================================
RCS file: /cvsroot/boost/boost/libs/wave/test/testwave/testwave_app.cpp,v
retrieving revision 1.31
retrieving revision 1.32
diff -u -d -r1.31 -r1.32
--- testwave_app.cpp 17 Mar 2006 22:40:02 -0000 1.31
+++ testwave_app.cpp 24 Jun 2006 21:47:16 -0000 1.32
@@ -492,14 +492,12 @@
std::string const& trim_whitespace(std::string& value)
{
std::string::size_type first = value.find_first_not_of(" \t");
- std::string::size_type last = std::string::npos;
-
if (std::string::npos == first)
value.clear();
else {
- last = value.find_last_not_of(" \t")+1;
+ std::string::size_type last = last = value.find_last_not_of(" \t");
assert(std::string::npos != last);
- value = value.substr(first, last-first);
+ value = value.substr(first, last-first+1);
}
return value;
}
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Boost-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/boost-cvs