DocDiff application: basic functionality, opening documents

This commit is contained in:
Jakub Melka
2021-09-05 18:13:06 +02:00
parent ba13871a9c
commit e354a03564
13 changed files with 1088 additions and 16 deletions

View File

@ -367,6 +367,15 @@ std::vector<PDFInteger> PDFClosedIntervalSet::unfold() const
return result;
}
void PDFClosedIntervalSet::translate(PDFInteger offset)
{
for (auto& interval : m_intervals)
{
interval.first += offset;
interval.second += offset;
}
}
PDFClosedIntervalSet PDFClosedIntervalSet::parse(PDFInteger first, PDFInteger last, const QString& text, QString* errorMessage)
{
PDFClosedIntervalSet result;