KompareDiff2

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

KDE's Doxygen guidelines are available online.