ENH: also store the group matches from IF( MATCHES) in CMAKE_MATCH_(0..9)

Alex
This commit is contained in:
Alexander Neundorf
2007-08-29 11:58:38 -04:00
parent fb43c64476
commit e80acd971c
4 changed files with 19 additions and 14 deletions

View File

@@ -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
{