summaryrefslogtreecommitdiffstats
path: root/Source/cmStringCommand.h
diff options
context:
space:
mode:
authorAlexander Neundorf <neundorf@kde.org>2007-08-21 14:56:25 (GMT)
committerAlexander Neundorf <neundorf@kde.org>2007-08-21 14:56:25 (GMT)
commitbf354fa308d4ff6923d0811697e162f9625fdec9 (patch)
treebe6839ffb6586cc936035160eb17486d401725b1 /Source/cmStringCommand.h
parent517a53e2d1830924389a89e1baf63e5cb95bdb0a (diff)
downloadCMake-bf354fa308d4ff6923d0811697e162f9625fdec9.zip
CMake-bf354fa308d4ff6923d0811697e162f9625fdec9.tar.gz
CMake-bf354fa308d4ff6923d0811697e162f9625fdec9.tar.bz2
STYLE: fix documentation for STRING(REPLACE) #5536
Alex
Diffstat (limited to 'Source/cmStringCommand.h')
-rw-r--r--Source/cmStringCommand.h12
1 files changed, 4 insertions, 8 deletions
diff --git a/Source/cmStringCommand.h b/Source/cmStringCommand.h
index d46d70c..7dd6668 100644
--- a/Source/cmStringCommand.h
+++ b/Source/cmStringCommand.h
@@ -71,8 +71,8 @@ public:
" 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 @@ public:
"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"