StringTextFile::StringTextFile (shared_ptr<const StringTextFileContent> content)
{
string ext = content->path(0).extension().string();
transform (ext.begin(), ext.end(), ext.begin(), ::tolower);
StringTextFile::StringTextFile (shared_ptr<const StringTextFileContent> content)
{
string ext = content->path(0).extension().string();
transform (ext.begin(), ext.end(), ext.begin(), ::tolower);
/** @return time of first subtitle, if there is one */
optional<ContentTime>
StringTextFile::first () const
{
if (_subtitles.empty()) {
/** @return time of first subtitle, if there is one */
optional<ContentTime>
StringTextFile::first () const
{
if (_subtitles.empty()) {