summaryrefslogtreecommitdiff
path: root/src/util.h
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2016-02-11 11:46:13 +0000
committerCarl Hetherington <cth@carlh.net>2016-02-11 11:46:13 +0000
commit8fd43fface7757bd0d7228ff0490a8c8ad074175 (patch)
tree420c5f191afe48cfe1c5094838002e84739aea91 /src/util.h
parent4e4e5f750fea7bb011c5c12181a55b90b3202cb7 (diff)
Extract get_line_{file,stringstream} into standalone methods.
Diffstat (limited to 'src/util.h')
-rw-r--r--src/util.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/util.h b/src/util.h
index e77d62e..9d3edc2 100644
--- a/src/util.h
+++ b/src/util.h
@@ -17,11 +17,14 @@
*/
+#include <boost/optional.hpp>
#include <string>
namespace sub {
extern bool empty_or_white_space (std::string s);
+extern boost::optional<std::string> get_line_stringstream (std::stringstream* str);
+extern boost::optional<std::string> get_line_file (FILE* f);
}