diff options
| author | Carl Hetherington <cth@carlh.net> | 2020-01-23 20:58:26 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2020-01-23 20:19:31 +0000 |
| commit | f60eeba3a0bc860f97c4126bf8759b41d49483dc (patch) | |
| tree | bf5ffb2ffc7fa9b127945abd221464c582c158ba /src/util.h | |
| parent | a3bf5b976640c4830aa1f1b701216e09c42c8cf7 (diff) | |
Move the body of dumpsubs out into a method.
Backported from 944ceca80f4452e6948fd7dd984c549299c49c52 in master.
Diffstat (limited to 'src/util.h')
| -rw-r--r-- | src/util.h | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -1,5 +1,5 @@ /* - Copyright (C) 2012-2015 Carl Hetherington <cth@carlh.net> + Copyright (C) 2012-2020 Carl Hetherington <cth@carlh.net> This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -28,9 +28,13 @@ class locked_stringstream; namespace sub { +class Reader; + extern bool empty_or_white_space (std::string s); extern void remove_unicode_bom (boost::optional<std::string>& line); extern boost::optional<std::string> get_line_stringstream (locked_stringstream* str); extern boost::optional<std::string> get_line_file (FILE* f); +extern boost::optional<std::string> get_line_string (std::string* s); +extern void dump (boost::shared_ptr<const Reader> read, std::ostream& os); } |
