security: Add configuration based validator
configuration file format can be found at: http://redmine.named-data.net/projects/ndn-cpp-dev/wiki/CommandValidatorConf
Change-Id: Icc2725f349aed7513f35f2cccdcd4463fadeef31
diff --git a/src/util/regex/regex-top-matcher.hpp b/src/util/regex/regex-top-matcher.hpp
index 4d9c01e..f5b30c1 100644
--- a/src/util/regex/regex-top-matcher.hpp
+++ b/src/util/regex/regex-top-matcher.hpp
@@ -20,25 +20,25 @@
class RegexTopMatcher: public RegexMatcher
{
public:
- RegexTopMatcher(const std::string & expr, const std::string& expand = "");
-
+ RegexTopMatcher(const std::string& expr, const std::string& expand = "");
+
virtual
~RegexTopMatcher();
- bool
+ bool
match(const Name& name);
virtual bool
- match (const Name& name, const int& offset, const int& len);
+ match(const Name& name, const int& offset, const int& length);
- virtual Name
- expand (const std::string& expand = "");
+ virtual Name
+ expand(const std::string& expand = "");
static shared_ptr<RegexTopMatcher>
fromName(const Name& name, bool hasAnchor=false);
protected:
- virtual void
+ virtual void
compile();
private: