Make SubripReader::convert_time usable by other classes.
[libsub.git] / src / subrip_reader.h
index 8d3fd4c124357e3a0723a84335b576917257ca7d..e29002f43a7e9e9b33235e51da92cc714c7e97cd 100644 (file)
@@ -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);