8#ifndef KOMPAREDIFF2_PARSERBASE_H
9#define KOMPAREDIFF2_PARSERBASE_H
12#include "difference.h"
15#include <QRegularExpression>
30 ParserBase(
const ModelList *list,
const QStringList &diff);
31 virtual ~ParserBase();
39 return determineFormat();
42 DiffModelList *parse(
bool *malformed =
nullptr);
45 virtual bool parseContextDiffHeader();
46 virtual bool parseEdDiffHeader();
47 virtual bool parseNormalDiffHeader();
48 virtual bool parseRCSDiffHeader();
49 virtual bool parseUnifiedDiffHeader();
51 virtual bool parseContextHunkHeader();
52 virtual bool parseEdHunkHeader();
53 virtual bool parseNormalHunkHeader();
54 virtual bool parseRCSHunkHeader();
55 virtual bool parseUnifiedHunkHeader();
57 virtual bool parseContextHunkBody();
58 virtual bool parseEdHunkBody();
59 virtual bool parseNormalHunkBody();
60 virtual bool parseRCSHunkBody();
61 virtual bool parseUnifiedHunkBody();
63 virtual DiffModelList *parseContext();
64 virtual DiffModelList *parseEd();
65 virtual DiffModelList *parseNormal();
66 virtual DiffModelList *parseRCS();
67 virtual DiffModelList *parseUnified();
70 bool matchesUnifiedHunkLine(
const QString &line)
const;
75 virtual Format determineFormat();
108 Difference::Type m_normalDiffType;
122 DiffModel *m_currentModel =
nullptr;
123 DiffModelList *m_models =
nullptr;
126 bool m_singleFileDiff =
false;
127 bool m_malformed =
false;
130 const ModelList *m_list;
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Nov 29 2024 11:50:47 by
doxygen 1.12.0 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.