diff options
author | Brad King <brad.king@kitware.com> | 2003-06-23 18:10:12 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2003-06-23 18:10:12 (GMT) |
commit | 38482b46d171bde2073fadab65118c5c9df29e0f (patch) | |
tree | cce4d062f94612f514f2b13cff42f5426c531b4b /Source/cmUseMangledMesaCommand.cxx | |
parent | b2368399d91b710616a3c53fc39bd8e11971b42f (diff) | |
download | CMake-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/cmUseMangledMesaCommand.cxx')
-rw-r--r-- | Source/cmUseMangledMesaCommand.cxx | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/Source/cmUseMangledMesaCommand.cxx b/Source/cmUseMangledMesaCommand.cxx index 3e6e2e0..d780dff 100644 --- a/Source/cmUseMangledMesaCommand.cxx +++ b/Source/cmUseMangledMesaCommand.cxx @@ -17,6 +17,8 @@ #include "cmUseMangledMesaCommand.h" #include "cmSystemTools.h" +#include <cmsys/RegularExpression.hxx> + // cmUseMangledMesaCommand bool cmUseMangledMesaCommand::InitialPass(std::vector<std::string> const& args) { @@ -91,11 +93,11 @@ CopyAndFullPathMesaHeader(const char* source, // input file at the same time std::string inLine; // regular expression for any #include line - cmRegularExpression includeLine("^[ \t]*#[ \t]*include[ \t]*[<\"]([^\">]+)[\">]"); + cmsys::RegularExpression includeLine("^[ \t]*#[ \t]*include[ \t]*[<\"]([^\">]+)[\">]"); // regular expression for gl/ or GL/ in a file (match(1) of above) - cmRegularExpression glDirLine("(gl|GL)(/|\\\\)([^<\"]+)"); + cmsys::RegularExpression glDirLine("(gl|GL)(/|\\\\)([^<\"]+)"); // regular expression for gl GL or xmesa in a file (match(1) of above) - cmRegularExpression glLine("(gl|GL|xmesa)"); + cmsys::RegularExpression glLine("(gl|GL|xmesa)"); while(cmSystemTools::GetLineFromStream(fin,inLine)) { if(includeLine.find(inLine.c_str())) |