summaryrefslogtreecommitdiffstats
path: root/Source/cmStringCommand.h
diff options
context:
space:
mode:
authorAlexander Neundorf <neundorf@kde.org>2007-08-29 15:58:38 (GMT)
committerAlexander Neundorf <neundorf@kde.org>2007-08-29 15:58:38 (GMT)
commite80acd971cdbd159140e1da76944258f437b96f4 (patch)
tree3f5918085b0411e2f036502040c1f5948e8881e8 /Source/cmStringCommand.h
parentfb43c6447606913ed0afca03c5018e6339e191ea (diff)
downloadCMake-e80acd971cdbd159140e1da76944258f437b96f4.zip
CMake-e80acd971cdbd159140e1da76944258f437b96f4.tar.gz
CMake-e80acd971cdbd159140e1da76944258f437b96f4.tar.bz2
ENH: also store the group matches from IF( MATCHES) in CMAKE_MATCH_(0..9)
Alex
Diffstat (limited to 'Source/cmStringCommand.h')
-rw-r--r--Source/cmStringCommand.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/Source/cmStringCommand.h b/Source/cmStringCommand.h
index e94f762..e323707 100644
--- a/Source/cmStringCommand.h
+++ b/Source/cmStringCommand.h
@@ -19,6 +19,7 @@
#include "cmCommand.h"
+class cmMakefile;
namespace cmsys
{
class RegularExpression;
@@ -122,6 +123,8 @@ public:
}
cmTypeMacro(cmStringCommand, cmCommand);
+ static void ClearMatches(cmMakefile* mf);
+ static void StoreMatches(cmMakefile* mf, cmsys::RegularExpression& re);
protected:
bool HandleConfigureCommand(std::vector<std::string> const& args);
bool HandleAsciiCommand(std::vector<std::string> const& args);
@@ -137,8 +140,6 @@ protected:
bool HandleSubstringCommand(std::vector<std::string> const& args);
bool HandleStripCommand(std::vector<std::string> const& args);
bool HandleRandomCommand(std::vector<std::string> const& args);
- void ClearMatches();
- void StoreMatches(cmsys::RegularExpression& re);
class RegexReplacement
{