summaryrefslogtreecommitdiff
path: root/src/util.h
diff options
context:
space:
mode:
authorTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2016-05-15 18:40:50 +0900
committerTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2016-05-15 18:40:50 +0900
commitbafbbe7c1d5ea39e67e233f9c32975fda7843874 (patch)
treef89e784f062e108935662c52f66eb559f6de61db /src/util.h
parent6976ffed9e96ccc70f161aa5a38abddaf9d9befe (diff)
Allow subsecond value in ns cookie.txt file's expiry time field
Diffstat (limited to 'src/util.h')
-rw-r--r--src/util.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/util.h b/src/util.h
index 25183b5c..76ecb549 100644
--- a/src/util.h
+++ b/src/util.h
@@ -280,6 +280,10 @@ bool parseUIntNoThrow(uint32_t& res, const std::string& s, int base = 10);
bool parseLLIntNoThrow(int64_t& res, const std::string& s, int base = 10);
+// Parses |s| as floating point number, and stores the result into
+// |res|. This function returns true if it succeeds.
+bool parseDoubleNoThrow(double& res, const std::string& s);
+
SegList<int> parseIntSegments(const std::string& src);
// Parses string which specifies the range of piece index for higher