diff options
| author | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2009-11-12 15:34:55 +0000 |
|---|---|---|
| committer | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2009-11-12 15:34:55 +0000 |
| commit | 9cdf102850169caf8059c19042dd2dc679038b95 (patch) | |
| tree | 0081ab583bd6a52e8b3afaef1e9ec77c1ba06710 /src/util.h | |
| parent | 8865b9e8e667880420aea3ebaac32bbb0c93d81d (diff) | |
2009-11-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
Added util::parseUIntNoThrow(). Use it in Request::parseUrl().
* src/Request.cc
* src/util.cc
* src/util.h
* test/RequestTest.cc
Diffstat (limited to 'src/util.h')
| -rw-r--r-- | src/util.h | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -180,6 +180,8 @@ int32_t parseInt(const std::string& s, int32_t base = 10); uint32_t parseUInt(const std::string& s, int base = 10); +bool parseUIntNoThrow(uint32_t& result, const std::string& s, int base = 10); + int64_t parseLLInt(const std::string& s, int32_t base = 10); uint64_t parseULLInt(const std::string& s, int base = 10); |
