diff options
author | Brad King <brad.king@kitware.com> | 2013-03-28 14:43:22 (GMT) |
---|---|---|
committer | CMake Topic Stage <kwrobot@kitware.com> | 2013-03-28 14:43:22 (GMT) |
commit | 1f16bd24ee00bfdb5d50e24eaa46da2cdfa1b129 (patch) | |
tree | 609a38419b02ad06463137f2d6c69560af375792 | |
parent | 4ce263288aeb1e32f4942045be7cbc92b7daa6b8 (diff) | |
parent | 674f918a1afbf1808328bac944aa8944f2475fe9 (diff) | |
download | CMake-1f16bd24ee00bfdb5d50e24eaa46da2cdfa1b129.zip CMake-1f16bd24ee00bfdb5d50e24eaa46da2cdfa1b129.tar.gz CMake-1f16bd24ee00bfdb5d50e24eaa46da2cdfa1b129.tar.bz2 |
Merge topic 'SystemTools-TrimWhitespace-all'
674f918 cmSystemTools: Generalize TrimWhitespace to all whitespace
-rw-r--r-- | Source/cmSystemTools.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
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); } |