[cmake-commits] alex committed cmStringCommand.h 1.23 1.24
cmake-commits at cmake.org
cmake-commits at cmake.org
Wed Aug 29 14:05:48 EDT 2007
Update of /cvsroot/CMake/CMake/Source
In directory public:/mounts/ram/cvs-serv341
Modified Files:
cmStringCommand.h
Log Message:
STYLE: add docs about the supported regexp characters and CMAKE_MATCH_(0..9)
Alex
Index: cmStringCommand.h
===================================================================
RCS file: /cvsroot/CMake/CMake/Source/cmStringCommand.h,v
retrieving revision 1.23
retrieving revision 1.24
diff -u -d -r1.23 -r1.24
--- cmStringCommand.h 29 Aug 2007 15:58:38 -0000 1.23
+++ cmStringCommand.h 29 Aug 2007 18:05:46 -0000 1.24
@@ -119,7 +119,20 @@
"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);
More information about the Cmake-commits
mailing list