KompareDiff2

stringlistpair.h
1/*
2SPDX-FileCopyrightText: 2011 Dmitry Risenberg <dmitry.risenberg@gmail.com>
3
4SPDX-License-Identifier: LGPL-2.0-or-later
5*/
6
7#ifndef KOMPAREDIFF2_STRINGLISTPAIR_H
8#define KOMPAREDIFF2_STRINGLISTPAIR_H
9
10#include <QStringList>
11#include "marker.h"
12
13namespace Diff2 {
14
15class StringListPair {
16public:
17 StringListPair(const QStringList& first, const QStringList& second);
18 ~StringListPair();
19 bool equal(unsigned int firstIndex, unsigned int secondIndex) const;
20 unsigned int lengthFirst() const;
21 unsigned int lengthSecond() const;
22 MarkerList markerListFirst() const;
23 MarkerList markerListSecond() const;
24 void prependFirst(Marker* marker);
25 void prependSecond(Marker* marker);
26 bool needFineGrainedOutput(unsigned int difference) const;
27
28 const static bool allowReplace = false;
29private:
30 const QStringList m_first;
31 const QStringList m_second;
32 unsigned int m_lengthFirst;
33 unsigned int m_lengthSecond;
34 unsigned int* m_hashesFirst;
35 unsigned int* m_hashesSecond;
36 MarkerList m_markersFirst;
37 MarkerList m_markersSecond;
38};
39
40}
41
42#endif // KOMPAREDIFF2_STRINGLISTPAIR_H
Diff2 namespace.
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Sat Apr 27 2024 22:10:24 by doxygen 1.10.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.