blob: 7240905d1aec92ff26045744b7787980fac1c17f [file] [log] [blame]
Yingdi Yu5e974202014-01-29 16:59:06 -08001/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil -*- */
2/**
3 * Copyright (C) 2013 Regents of the University of California.
4 * @author: Yingdi Yu <yingdi@cs.ucla.edu>
5 * See COPYING for copyright and distribution information.
6 */
7
8#ifndef NDN_REGEX_PATTERN_LIST_MATCHER_HPP
9#define NDN_REGEX_PATTERN_LIST_MATCHER_HPP
10
11#include <string>
12
13#include "regex-matcher.hpp"
14
15namespace ndn
16{
17
18class RegexPatternListMatcher : public RegexMatcher
19{
20public:
21 RegexPatternListMatcher(const std::string expr, ptr_lib::shared_ptr<RegexBackrefManager> backRefManager);
22
23 virtual ~RegexPatternListMatcher(){};
24
25protected:
26 virtual void
27 compile();
28
29private:
30 bool
31 extractPattern(int index, int* next);
32
33 int
34 extractSubPattern(const char left, const char right, int index);
35
36 int
37 extractRepetition(int index);
38
39private:
40
41};
42}//ndn
43
44#endif