summaryrefslogtreecommitdiffstats
path: root/Source/cmCTest.h
diff options
context:
space:
mode:
authorRolf Eike Beer <eike@sf-mail.de>2020-03-20 13:29:30 (GMT)
committerRolf Eike Beer <eike@sf-mail.de>2020-03-23 19:19:26 (GMT)
commit7df84ffe58572a4535b08bc7b76148a60d38fbb4 (patch)
treebc57bd409d140f969ad2bdbe5c14a8b173d308ef /Source/cmCTest.h
parentd6a4e9fbc8009861108923a529c3a36998682baa (diff)
downloadCMake-7df84ffe58572a4535b08bc7b76148a60d38fbb4.zip
CMake-7df84ffe58572a4535b08bc7b76148a60d38fbb4.tar.gz
CMake-7df84ffe58572a4535b08bc7b76148a60d38fbb4.tar.bz2
allow cmCTest::CleanString() to skip input characters
This entirely avoids that one needs to call std::string::substr() for the input.
Diffstat (limited to 'Source/cmCTest.h')
-rw-r--r--Source/cmCTest.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/Source/cmCTest.h b/Source/cmCTest.h
index 7f8f913..7177b76 100644
--- a/Source/cmCTest.h
+++ b/Source/cmCTest.h
@@ -140,7 +140,8 @@ public:
std::string GetTestModelString();
static int GetTestModelFromString(const char* str);
- static std::string CleanString(const std::string& str);
+ static std::string CleanString(const std::string& str,
+ std::string::size_type spos = 0);
std::string GetCTestConfiguration(const std::string& name);
void SetCTestConfiguration(const char* name, const char* value,
bool suppress = false);