Bump libdcp.
[libsub.git] / src / subrip_reader.h
index 5f5f343f48ca7e56f46d7571785ae8d014a6a4e9..f45e7c85676ae5ffbd2034ce1a559d4052299a7a 100644 (file)
@@ -1,5 +1,5 @@
 /*
-    Copyright (C) 2014 Carl Hetherington <cth@carlh.net>
+    Copyright (C) 2014-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
@@ -29,6 +29,8 @@
 
 struct subrip_reader_convert_line_test;
 struct subrip_reader_convert_time_test;
+struct subrip_reader_test5;
+struct subrip_reader_test6;
 
 namespace sub {
 
@@ -36,18 +38,22 @@ class SubripReader : public Reader
 {
 public:
        SubripReader (FILE* f);
-       SubripReader (std::string const & subs);
+       SubripReader (std::string subs);
 
 private:
        /* For tests */
        friend struct ::subrip_reader_convert_line_test;
        friend struct ::subrip_reader_convert_time_test;
+       friend struct ::subrip_reader_test5;
+       friend struct ::subrip_reader_test6;
        SubripReader () {}
 
-       static Time convert_time (std::string t);
+       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);
+
+       std::list<std::string> _context;
 };
 
 }