summaryrefslogtreecommitdiffstats
path: root/Source/cmStringCommand.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2003-06-23 18:10:12 (GMT)
committerBrad King <brad.king@kitware.com>2003-06-23 18:10:12 (GMT)
commit38482b46d171bde2073fadab65118c5c9df29e0f (patch)
treecce4d062f94612f514f2b13cff42f5426c531b4b /Source/cmStringCommand.cxx
parentb2368399d91b710616a3c53fc39bd8e11971b42f (diff)
downloadCMake-38482b46d171bde2073fadab65118c5c9df29e0f.zip
CMake-38482b46d171bde2073fadab65118c5c9df29e0f.tar.gz
CMake-38482b46d171bde2073fadab65118c5c9df29e0f.tar.bz2
ENH: Merged use of the kwsys RegularExpression class instead of cmRegularExpression.
Diffstat (limited to 'Source/cmStringCommand.cxx')
-rw-r--r--Source/cmStringCommand.cxx8
1 files changed, 5 insertions, 3 deletions
diff --git a/Source/cmStringCommand.cxx b/Source/cmStringCommand.cxx
index e8d6bc1..1e13592 100644
--- a/Source/cmStringCommand.cxx
+++ b/Source/cmStringCommand.cxx
@@ -15,6 +15,8 @@
=========================================================================*/
#include "cmStringCommand.h"
+#include <cmsys/RegularExpression.hxx>
+
#include <stdlib.h> // required for atoi
//----------------------------------------------------------------------------
bool cmStringCommand::InitialPass(std::vector<std::string> const& args)
@@ -136,7 +138,7 @@ bool cmStringCommand::RegexMatch(std::vector<std::string> const& args)
}
// Compile the regular expression.
- cmRegularExpression re;
+ cmsys::RegularExpression re;
if(!re.compile(regex.c_str()))
{
std::string e = "sub-command REGEX, mode MATCH failed to compile regex \""+regex+"\".";
@@ -179,7 +181,7 @@ bool cmStringCommand::RegexMatchAll(std::vector<std::string> const& args)
}
// Compile the regular expression.
- cmRegularExpression re;
+ cmsys::RegularExpression re;
if(!re.compile(regex.c_str()))
{
std::string e = "sub-command REGEX, mode MATCHALL failed to compile regex \""+regex+"\".";
@@ -277,7 +279,7 @@ bool cmStringCommand::RegexReplace(std::vector<std::string> const& args)
}
// Compile the regular expression.
- cmRegularExpression re;
+ cmsys::RegularExpression re;
if(!re.compile(regex.c_str()))
{
std::string e = "sub-command REGEX, mode REPLACE failed to compile regex \""+regex+"\".";