mirror of
https://github.com/JakubMelka/PDF4QT.git
synced 2025-06-05 21:59:17 +02:00
DocDiff application: basic functionality, opening documents
This commit is contained in:
@ -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;
|
||||
|
Reference in New Issue
Block a user