24 #ifndef NDN_NDN_REGEX_MATCHER_HPP
25 #define NDN_NDN_REGEX_MATCHER_HPP
31 #include <ndn-cpp/ndn-cpp-config.h>
32 #if NDN_CPP_HAVE_STD_REGEX
34 namespace ndn {
namespace regex_lib =
std; }
35 #define NDN_CPP_HAVE_REGEX_LIB 1
36 #elif defined(NDN_CPP_HAVE_BOOST_REGEX)
37 #include <boost/regex.hpp>
38 namespace ndn {
namespace regex_lib =
boost; }
39 #define NDN_CPP_HAVE_REGEX_LIB 1
41 #define NDN_CPP_HAVE_REGEX_LIB 0
45 #if NDN_CPP_HAVE_REGEX_LIB
48 #include <ndn-cpp/name.hpp>
60 class NdnRegexMatcher {
69 NdnRegexMatcher(
const std::string& pattern,
const Name& name);
71 regex_lib::sregex_iterator iterator;
75 sanitizeSets(
const std::string& pattern);
78 ptr_lib::shared_ptr<std::string> source_;
83 #endif // NDN_CPP_HAVE_REGEX_LIB
Copyright (C) 2013-2016 Regents of the University of California.
Definition: common.hpp:35
Copyright (C) 2015-2016 Regents of the University of California.
Definition: threadsafe-face.hpp:27
Copyright (C) 2015-2016 Regents of the University of California.