diff options
| author | Carl Hetherington <cth@carlh.net> | 2016-02-11 11:46:13 +0000 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2016-02-11 11:46:13 +0000 |
| commit | 8fd43fface7757bd0d7228ff0490a8c8ad074175 (patch) | |
| tree | 420c5f191afe48cfe1c5094838002e84739aea91 /src/util.h | |
| parent | 4e4e5f750fea7bb011c5c12181a55b90b3202cb7 (diff) | |
Extract get_line_{file,stringstream} into standalone methods.
Diffstat (limited to 'src/util.h')
| -rw-r--r-- | src/util.h | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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); } |
