]>
Commit | Line | Data |
---|---|---|
1 | /* | |
2 | * Copyright (C) 1996-2023 The Squid Software Foundation and contributors | |
3 | * | |
4 | * Squid software is distributed under GPLv2+ license and includes | |
5 | * contributions from numerous individuals and organizations. | |
6 | * Please see the COPYING and CONTRIBUTORS files for details. | |
7 | */ | |
8 | ||
9 | #ifndef SQUID_ACLREGEXDATA_H | |
10 | #define SQUID_ACLREGEXDATA_H | |
11 | ||
12 | #include "acl/Data.h" | |
13 | ||
14 | #include <list> | |
15 | ||
16 | class RegexPattern; | |
17 | ||
18 | class ACLRegexData : public ACLData<char const *> | |
19 | { | |
20 | MEMPROXY_CLASS(ACLRegexData); | |
21 | ||
22 | public: | |
23 | ~ACLRegexData() override; | |
24 | bool match(char const *user) override; | |
25 | SBufList dump() const override; | |
26 | void parse() override; | |
27 | bool empty() const override; | |
28 | ||
29 | private: | |
30 | /// whether parse() is called in a case insensitive context | |
31 | static Acl::BooleanOptionValue CaseInsensitive_; | |
32 | ||
33 | /* ACLData API */ | |
34 | const Acl::Options &lineOptions() override; | |
35 | ||
36 | std::list<RegexPattern> data; | |
37 | }; | |
38 | ||
39 | #endif /* SQUID_ACLREGEXDATA_H */ | |
40 |