using std::string;
using std::vector;
-using std::list;
using std::cout;
using std::hex;
using boost::lexical_cast;
rs.vertical_position.reference = TOP_OF_SUBTITLE;
while (true) {
- optional<string> line = get_line ();
+ auto line = get_line ();
if (!line) {
break;
}
string tag;
- list<Colour> colours;
+ vector<Colour> colours;
colours.push_back (Colour (1, 1, 1));
/* XXX: missing <font> support */
p.underline = false;
} else if (boost::starts_with (tag, "font")) {
maybe_content (p);
- boost::regex re (".*color=\"#([[:xdigit:]]+)\"");
+ boost::regex re (".*color=\"?#([[:xdigit:]]+)\"?");
boost::smatch match;
if (boost::regex_search (tag, match, re) && string (match[1]).size() == 6) {
p.colour = Colour::from_rgb_hex (match[1]);