summaryrefslogtreecommitdiff
path: root/src/cookie_helper.h
diff options
context:
space:
mode:
authorTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2011-11-03 16:19:21 +0900
committerTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2011-11-03 16:19:21 +0900
commit6ef91d60b34a2a93b397b6db4daabfe8017d31fb (patch)
tree9bea3d0ad7b599280b18e5e5d42ecd6201c2f0e8 /src/cookie_helper.h
parente8d4deecad3c0b2defb3059ed11eaae24feb2e81 (diff)
Rewritten util::stripIter(), which now returns pair of iterator.
Diffstat (limited to 'src/cookie_helper.h')
-rw-r--r--src/cookie_helper.h9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/cookie_helper.h b/src/cookie_helper.h
index 6dc249eb..50e15eba 100644
--- a/src/cookie_helper.h
+++ b/src/cookie_helper.h
@@ -47,7 +47,10 @@ class Cookie;
namespace cookie {
-bool parseDate(time_t& time, const std::string& cookieDate);
+bool parseDate
+(time_t& time,
+ std::string::const_iterator first,
+ std::string::const_iterator last);
bool parse
(Cookie& cookie,
@@ -58,7 +61,9 @@ bool parse
std::string removePrecedingDots(const std::string& host);
-bool goodPath(const std::string& cookiePath);
+bool goodPath
+(std::string::const_iterator first,
+ std::string::const_iterator last);
std::string canonicalizeHost(const std::string& host);