]> git.ipfire.org Git - thirdparty/squid.git/commit
Refactor refresh_pattern to using class RegexPattern
authorAmos Jeffries <squid3@treenet.co.nz>
Mon, 27 Jul 2015 16:03:11 +0000 (09:03 -0700)
committerAmos Jeffries <squid3@treenet.co.nz>
Mon, 27 Jul 2015 16:03:11 +0000 (09:03 -0700)
commite55f4780178e9b33e571a3d5ecb5d1ec41bbef2e
treef0e70681f6d5f1a83c8f73402224d43a9db5249b
parent6d2a427b0397879c364742e62e3f8d9898d2f4de
Refactor refresh_pattern to using class RegexPattern

* re-use class RegexPattern to store refresh_pattern regex field and
  related case sensitivity flag.

* convert class RefreshPattern to MEMPROXY_CLASS.
  Required to ensure corret RegexPattern construction.

* add c_str() method to RegexPattern and hide unencoded pattern member.
  optimization to avoid ugly 'R->pattern.pattern' code and guarantee
  const correctness.
src/RefreshPattern.h
src/acl/RegexData.cc
src/base/RegexPattern.h
src/cache_cf.cc
src/refresh.cc