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:58:26 +0100 |
| commit | 944ceca80f4452e6948fd7dd984c549299c49c52 (patch) | |
| tree | 2317de0287659fbe2a123292e0a2b5a8e743931a /src/util.h | |
| parent | 5850e1da92f2938609dd2a6289691293da5d3ad2 (diff) | |
Move the body of dumpsubs out into a method.
Diffstat (limited to 'src/util.h')
| -rw-r--r-- | src/util.h | 5 |
1 files changed, 4 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 @@ -26,9 +26,12 @@ 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_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); } |
