[Cmake-commits] CMake branch, next, updated. v2.8.10.2-2674-g6684d71
Brad King
brad.king at kitware.com
Wed Mar 27 08:50:33 EDT 2013
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "CMake".
The branch, next has been updated
via 6684d713c0104325199e09791beaadbde86287bf (commit)
via 674f918a1afbf1808328bac944aa8944f2475fe9 (commit)
from 27312263cd68c815ae83cd01305783ccb71a5367 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=6684d713c0104325199e09791beaadbde86287bf
commit 6684d713c0104325199e09791beaadbde86287bf
Merge: 2731226 674f918
Author: Brad King <brad.king at kitware.com>
AuthorDate: Wed Mar 27 08:50:32 2013 -0400
Commit: CMake Topic Stage <kwrobot at kitware.com>
CommitDate: Wed Mar 27 08:50:32 2013 -0400
Merge topic 'SystemTools-TrimWhitespace-all' into next
674f918 cmSystemTools: Generalize TrimWhitespace to all whitespace
http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=674f918a1afbf1808328bac944aa8944f2475fe9
commit 674f918a1afbf1808328bac944aa8944f2475fe9
Author: Petr Kmoch <petr.kmoch at gmail.com>
AuthorDate: Wed Mar 27 08:35:27 2013 +0100
Commit: Brad King <brad.king at kitware.com>
CommitDate: Wed Mar 27 08:46:55 2013 -0400
cmSystemTools: Generalize TrimWhitespace to all whitespace
Modify cmSystemTools::TrimWhitespace() to remove all leading and
trailing whitespace, not just spaces.
diff --git a/Source/cmSystemTools.cxx b/Source/cmSystemTools.cxx
index 525efb4..67f3023 100644
--- a/Source/cmSystemTools.cxx
+++ b/Source/cmSystemTools.cxx
@@ -203,13 +203,13 @@ std::string cmSystemTools::EscapeQuotes(const char* str)
std::string cmSystemTools::TrimWhitespace(const std::string& s)
{
std::string::const_iterator start = s.begin();
- while(start != s.end() && *start == ' ')
+ while(start != s.end() && *start <= ' ')
++start;
if (start == s.end())
return "";
std::string::const_iterator stop = s.end()-1;
- while(*stop == ' ')
+ while(*stop <= ' ')
--stop;
return std::string(start, stop+1);
}
-----------------------------------------------------------------------
Summary of changes:
Source/cmSystemTools.cxx | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
hooks/post-receive
--
CMake
More information about the Cmake-commits
mailing list