diff options
| author | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2011-11-04 22:27:58 +0900 |
|---|---|---|
| committer | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2011-11-04 22:27:58 +0900 |
| commit | f84d2253b2250ed5760398c189bfc8bf8dff1f69 (patch) | |
| tree | 19a84b1b75161152d5c3c338282596a2537e4c1d /src/Cookie.h | |
| parent | 6267676e8bba1566aa68a757359c9481b135cc6d (diff) | |
Rewritten util::split and added its iterator version.
Iterator based functions util::startsWith, util::endsWith,
util::streq, util::strieq were added.
Diffstat (limited to 'src/Cookie.h')
| -rw-r--r-- | src/Cookie.h | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/src/Cookie.h b/src/Cookie.h index 5462891d..e571225d 100644 --- a/src/Cookie.h +++ b/src/Cookie.h @@ -97,6 +97,12 @@ public: void setName(const std::string& name); + template<typename InputIterator> + void setName(InputIterator first, InputIterator last) + { + name_.assign(first, last); + } + const std::string& getValue() const { return value_; @@ -104,6 +110,12 @@ public: void setValue(const std::string& value); + template<typename InputIterator> + void setValue(InputIterator first, InputIterator last) + { + value_.assign(first, last); + } + time_t getExpiryTime() const { return expiryTime_; @@ -131,6 +143,12 @@ public: void setDomain(const std::string& domain); + template<typename InputIterator> + void setDomain(InputIterator first, InputIterator last) + { + domain_.assign(first, last); + } + bool getHostOnly() const { return hostOnly_; @@ -148,6 +166,12 @@ public: void setPath(const std::string& path); + template<typename InputIterator> + void setPath(InputIterator first, InputIterator last) + { + path_.assign(first, last); + } + bool getSecure() const { return secure_; |
