summaryrefslogtreecommitdiffstats
path: root/Source/cmStringCommand.h
diff options
context:
space:
mode:
authorAlexander Neundorf <neundorf@kde.org>2007-08-29 18:05:46 (GMT)
committerAlexander Neundorf <neundorf@kde.org>2007-08-29 18:05:46 (GMT)
commita4e6bd15158b771b747a2bc0cd716412beff70b6 (patch)
tree5f74ecb4a1af1e348ffd9ced1e709801bdc66367 /Source/cmStringCommand.h
parentef13337c1f4fb7d02b89f54780c50f99d81643a0 (diff)
downloadCMake-a4e6bd15158b771b747a2bc0cd716412beff70b6.zip
CMake-a4e6bd15158b771b747a2bc0cd716412beff70b6.tar.gz
CMake-a4e6bd15158b771b747a2bc0cd716412beff70b6.tar.bz2
STYLE: add docs about the supported regexp characters and CMAKE_MATCH_(0..9)
Alex
Diffstat (limited to 'Source/cmStringCommand.h')
-rw-r--r--Source/cmStringCommand.h15
1 files changed, 14 insertions, 1 deletions
diff --git a/Source/cmStringCommand.h b/Source/cmStringCommand.h
index e323707..2d0881c 100644
--- a/Source/cmStringCommand.h
+++ b/Source/cmStringCommand.h
@@ -119,7 +119,20 @@ public:
"RANDOM will return a random string of given length consisting of "
"characters from the given alphabet. Default length is 5 "
"characters and default alphabet is all numbers and upper and "
- "lower case letters.";
+ "lower case letters.\n"
+ "The following characters have special meaning in regular expressions:\n"
+ " ^ Matches at beginning of a line\n"
+ " $ Matches at end of a line\n"
+ " . Matches any single character\n"
+ " [ ] Matches any character(s) inside the brackets\n"
+ " [^ ] Matches any character(s) not inside the brackets\n"
+ " - Matches any character in range on either side of a dash\n"
+ " * Matches preceding pattern zero or more times\n"
+ " + Matches preceding pattern one or more times\n"
+ " ? Matches preceding pattern zero or once only\n"
+ " () Saves a matched subexpression, which can be referenced in "
+ "the REGEX REPLACE operation. Additionally it is saved in the special "
+ "CMake variables CMAKE_MATCH_(0..9).";
}
cmTypeMacro(cmStringCommand, cmCommand);