diff options
| author | Carl Hetherington <cth@carlh.net> | 2022-11-13 19:46:18 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2022-11-13 19:46:18 +0100 |
| commit | e3c66895937d334ceb6d9c310941e2fbeae0e6dc (patch) | |
| tree | a65904c90371128adcb1f81e6f6c5809730d3155 /src/subrip_reader.h | |
| parent | dc36525dc7d430aa00d4de4bd037ae5dbb004b32 (diff) | |
Make SubripReader::convert_time usable by other classes.
Diffstat (limited to 'src/subrip_reader.h')
| -rw-r--r-- | src/subrip_reader.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/subrip_reader.h b/src/subrip_reader.h index 8d3fd4c..e29002f 100644 --- a/src/subrip_reader.h +++ b/src/subrip_reader.h @@ -41,6 +41,8 @@ public: SubripReader (FILE* f); SubripReader (std::string subs); + static boost::optional<Time> convert_time(std::string t, std::string* expected = nullptr); + private: /* For tests */ friend struct ::subrip_reader_convert_line_test; @@ -49,7 +51,6 @@ private: friend struct ::subrip_reader_test6; SubripReader () {} - Time convert_time (std::string t); void convert_line (std::string t, RawSubtitle& p); void maybe_content (RawSubtitle& p); void read (boost::function<boost::optional<std::string> ()> get_line); |
