#pragma implementation
#endif
-#include <algorithm>
-
-#include <cctype>
-#include <cstdlib>
-
#include "LString.h"
#include "lstrings.h"
-#include "LRegex.h"
#include "LAssert.h"
#include "debug.h"
+#include <boost/regex.hpp>
+
+#include <algorithm>
+
+#include <cctype>
+#include <cstdlib>
+
using std::count;
using std::transform;
using std::vector;
#ifndef CXX_GLOBAL_CSTD
+using std::atof;
+using std::isdigit;
+using std::strlen;
using std::tolower;
using std::toupper;
-using std::strlen;
#endif
string regex(pattern);
regex = subst(regex, ".", "\\.");
regex = subst(regex, "*", ".*");
- LRegex reg(regex);
- return reg.exact_match(a);
+ boost::regex reg(regex);
+ return boost::regex_match(a, reg);
}
}
return str;
}
-