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/cmLoadCacheCommand.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/cmLoadCacheCommand.cxx')
-rw-r--r-- | Source/cmLoadCacheCommand.cxx | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Source/cmLoadCacheCommand.cxx b/Source/cmLoadCacheCommand.cxx index ef3fe26..2abe6d0 100644 --- a/Source/cmLoadCacheCommand.cxx +++ b/Source/cmLoadCacheCommand.cxx @@ -16,6 +16,7 @@ =========================================================================*/ #include "cmLoadCacheCommand.h" +#include <cmsys/RegularExpression.hxx> // cmLoadCacheCommand bool cmLoadCacheCommand::InitialPass(std::vector<std::string> const& args) @@ -202,9 +203,9 @@ bool cmLoadCacheCommand::ParseEntry(const char* entry, std::string& var, std::string& value) { // input line is: key:type=value - cmRegularExpression reg("^([^:]*):([^=]*)=(.*[^\t ]|[\t ]*)[\t ]*$"); + cmsys::RegularExpression reg("^([^:]*):([^=]*)=(.*[^\t ]|[\t ]*)[\t ]*$"); // input line is: "key":type=value - cmRegularExpression regQuoted("^\"([^\"]*)\":([^=]*)=(.*[^\t ]|[\t ]*)[\t ]*$"); + cmsys::RegularExpression regQuoted("^\"([^\"]*)\":([^=]*)=(.*[^\t ]|[\t ]*)[\t ]*$"); bool flag = false; if(regQuoted.find(entry)) { |