[cmake-commits] alex committed cmStringCommand.h 1.20 1.21

cmake-commits at cmake.org cmake-commits at cmake.org
Tue Aug 21 10:56:27 EDT 2007


Update of /cvsroot/CMake/CMake/Source
In directory public:/mounts/ram/cvs-serv25965

Modified Files:
	cmStringCommand.h 
Log Message:

STYLE: fix documentation for STRING(REPLACE) #5536

Alex


Index: cmStringCommand.h
===================================================================
RCS file: /cvsroot/CMake/CMake/Source/cmStringCommand.h,v
retrieving revision 1.20
retrieving revision 1.21
diff -u -d -r1.20 -r1.21
--- cmStringCommand.h	27 Apr 2007 01:50:52 -0000	1.20
+++ cmStringCommand.h	21 Aug 2007 14:56:25 -0000	1.21
@@ -71,8 +71,8 @@
       "  STRING(REGEX REPLACE <regular_expression>\n"
       "         <replace_expression> <output variable>\n"
       "         <input> [<input>...])\n"
-      "  STRING(REPLACE <match_expression>\n"
-      "         <replace_expression> <output variable>\n"
+      "  STRING(REPLACE <match_string>\n"
+      "         <replace_string> <output variable>\n"
       "         <input> [<input>...])\n"
       "  STRING(COMPARE EQUAL <string1> <string2> <output variable>)\n"
       "  STRING(COMPARE NOTEQUAL <string1> <string2> <output variable>)\n"
@@ -98,12 +98,8 @@
       "subexpressions of the match using \\1, \\2, ..., \\9.  Note that "
       "two backslashes (\\\\1) are required in CMake code to get a "
       "backslash through argument parsing.\n"
-      "REPLACE will match the given expression "
-      "and substitute the replacement expression for the match "
-      "in the output.  The replace expression may refer to paren-delimited "
-      "subexpressions of the match using \\1, \\2, ..., \\9.  Note that "
-      "two backslashes (\\\\1) are required in CMake code to get a "
-      "backslash through argument parsing.\n"
+      "REPLACE will replace all occurences of match_string in the input with "
+      "replace_string and store the result in the output.\n"
       "COMPARE EQUAL/NOTEQUAL/LESS/GREATER will compare the strings and "
       "store true or false in the output variable.\n"
       "ASCII will convert all numbers into corresponding ASCII characters.\n"



More information about the Cmake-commits mailing list