[Cmake-commits] CMake branch, next, updated. v2.8.4-1627-g4a11706

David Cole david.cole at kitware.com
Fri May 27 16:32:43 EDT 2011


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  4a11706727e982702216c546d4f98423b119f437 (commit)
       via  ecdad65a4541db353bd498be7d7090b5ed059ebc (commit)
      from  e1237b4b89fb2f6c461c0944ad05e2785bf32c1b (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=4a11706727e982702216c546d4f98423b119f437
commit 4a11706727e982702216c546d4f98423b119f437
Merge: e1237b4 ecdad65
Author:     David Cole <david.cole at kitware.com>
AuthorDate: Fri May 27 16:32:42 2011 -0400
Commit:     CMake Topic Stage <kwrobot at kitware.com>
CommitDate: Fri May 27 16:32:42 2011 -0400

    Merge topic 'fix-10740-update-string-docs' into next
    
    ecdad65 CMake: Update documentation of STRING(SUBSTRING) for length -1 (#10740)


http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=ecdad65a4541db353bd498be7d7090b5ed059ebc
commit ecdad65a4541db353bd498be7d7090b5ed059ebc
Author:     Rolf Eike Beer <eike at sf-mail.de>
AuthorDate: Thu Feb 3 21:10:28 2011 +0100
Commit:     David Cole <david.cole at kitware.com>
CommitDate: Fri May 27 16:25:08 2011 -0400

    CMake: Update documentation of STRING(SUBSTRING) for length -1 (#10740)

diff --git a/Source/cmStringCommand.cxx b/Source/cmStringCommand.cxx
index 3c74dc9..d239c06 100644
--- a/Source/cmStringCommand.cxx
+++ b/Source/cmStringCommand.cxx
@@ -677,7 +677,7 @@ bool cmStringCommand::HandleSubstringCommand(std::vector<std::string> const&
   if ( end < -1 || end > leftOverLength )
     {
     cmOStringStream ostr;
-    ostr << "end index: " << end << " is out of range " << 0 << " - "
+    ostr << "end index: " << end << " is out of range -1 - "
          << leftOverLength;
     this->SetError(ostr.str().c_str());
     return false;
diff --git a/Source/cmStringCommand.h b/Source/cmStringCommand.h
index 9586449..52b83d9 100644
--- a/Source/cmStringCommand.h
+++ b/Source/cmStringCommand.h
@@ -110,7 +110,8 @@ public:
       "a file.\n"
       "TOUPPER/TOLOWER will convert string to upper/lower characters.\n"
       "LENGTH will return a given string's length.\n"
-      "SUBSTRING will return a substring of a given string.\n"
+      "SUBSTRING will return a substring of a given string. If length is "
+      "-1 the remainder of the string starting at begin will be returned.\n"
       "STRIP will return a substring of a given string with leading "
       "and trailing spaces removed.\n"
       "RANDOM will return a random string of given length consisting of "

-----------------------------------------------------------------------

Summary of changes:
 Source/cmStringCommand.cxx |    2 +-
 Source/cmStringCommand.h   |    3 ++-
 2 files changed, 3 insertions(+), 2 deletions(-)


hooks/post-receive
-- 
CMake


More information about the Cmake-commits mailing list