bool CRealTextParser::OutputSRT(std::wostream& p_rOutput) { int iCounter(1); for (auto i = m_RealText.m_mapLines.cbegin(); i != m_RealText.m_mapLines.cend(); ++i) { p_rOutput << iCounter++; p_rOutput << std::endl; p_rOutput << FormatTimecode(i->first.first); p_rOutput << L" --> "; p_rOutput << FormatTimecode(i->first.second); p_rOutput << std::endl; p_rOutput << i->second; p_rOutput << std::endl; p_rOutput << std::endl; } return true; }
bool CRealTextParser::OutputSRT(wostream& p_rOutput) { int iCounter(1); for (map<pair<int, int>, wstring>::const_iterator i = m_RealText.m_mapLines.begin(); i != m_RealText.m_mapLines.end(); ++i) { p_rOutput << iCounter++; p_rOutput << endl; p_rOutput << FormatTimecode(i->first.first); p_rOutput << L" --> "; p_rOutput << FormatTimecode(i->first.second); p_rOutput << endl; p_rOutput << i->second; p_rOutput << endl; p_rOutput << endl; } return true; }