*/
#include <iostream>
+#include <regex> // For regex, regex_search
#include <boost/filesystem/convenience.hpp> // For extension
-#include <boost/regex.hpp> // For regex, regex_search
#include "common/admin_socket_client.h" // For AdminSocketClient
#include "common/ceph_json.h" // For JSONParser, JSONObjIter
std::cout << x.path() << std::endl;
if (bfs::extension(x.path()) == ".asok") {
for (auto &target : targets) {
- if (boost::regex_search(x.path().filename().string(),
- boost::regex(prefix + target + R"(\..*\.asok)"))) {
+ if (std::regex_search(x.path().filename().string(),
+ std::regex(prefix + target + R"(\..*\.asok)"))) {
std::cout << "Found " << target << " socket " << x.path()
<< std::endl;
sockets.insert(std::make_pair(target, x.path().string()));
// vim: ts=8 sw=2 smarttab
#include <boost/algorithm/string.hpp>
-// std::regex support in libstdc++ 4.8 is incomplete, so let's stick to
-// boost::regex now.
-#include <boost/regex.hpp>
#include <gtest/gtest.h>
+#include <regex>
#include <sstream>
#include <string>
const unsigned lineno = 1;
ASSERT_GT(lines.size(), lineno);
ASSERT_EQ(lines[0].find(pretty_version_to_str()), 1U);
- boost::regex e{"^ 1: "
+ std::regex e{"^ 1: "
#ifdef __FreeBSD__
"<foo.*>\\s"
"at\\s.*$"};
"\\(foo.*\\)\\s"
"\\[0x[[:xdigit:]]+\\]$"};
#endif
- EXPECT_TRUE(boost::regex_match(lines[lineno], e));
+ EXPECT_TRUE(std::regex_match(lines[lineno], e));
}
#include <map>
#include <sstream>
#include <string>
-#include <boost/regex.hpp>
+#include <regex>
using namespace librados;
using std::map;
string result(buf);
rados_buffer_free(buf);
rados_buffer_free(st);
- if (!boost::regex_search(result, boost::regex("require_osd_release [l-z]"))) {
+ if (!std::regex_search(result, std::regex("require_osd_release [l-z]"))) {
std::cout << "SKIPPING";
return;
}
inbl, &outbl, &outs));
ASSERT_LT(0u, outbl.length());
ASSERT_LE(0u, outs.length());
- if (!boost::regex_search(outbl.to_str(),
- boost::regex("require_osd_release [l-z]"))) {
+ if (!std::regex_search(outbl.to_str(),
+ std::regex("require_osd_release [l-z]"))) {
std::cout << "SKIPPING";
return;
}