Commit 992708b1 authored by Volker Krause's avatar Volker Krause
Browse files

Port diff header parsing to QRegularExpression

parent 9faf8b56
......@@ -17,10 +17,10 @@ CVSDiffParser::CVSDiffParser(const KompareModelList* list, const QStringList& di
{
// The regexps needed for context cvs diff parsing, the rest is the same as in parserbase.cpp
// third capture in header1 is non optional for cvs diff, it is the revision
m_contextDiffHeader1.setPattern(QStringLiteral("\\*\\*\\* ([^\\t]+)\\t([^\\t]+)\\t(.*)\\n"));
m_contextDiffHeader2.setPattern(QStringLiteral("--- ([^\\t]+)\\t([^\\t]+)(|\\t(.*))\\n"));
m_contextDiffHeader1.setPattern(QRegularExpression::anchoredPattern(QStringLiteral("\\*\\*\\* ([^\\t]+)\\t([^\\t]+)\\t(.*)\\n")));
m_contextDiffHeader2.setPattern(QRegularExpression::anchoredPattern(QStringLiteral("--- ([^\\t]+)\\t([^\\t]+)(|\\t(.*))\\n")));
m_normalDiffHeader.setPattern(QStringLiteral("Index: (.*)\\n"));
m_normalDiffHeader.setPattern(QRegularExpression::anchoredPattern(QStringLiteral("Index: (.*)\\n")));
}
CVSDiffParser::~CVSDiffParser()
......@@ -81,14 +81,15 @@ bool CVSDiffParser::parseNormalDiffHeader()
while (m_diffIterator != diffEnd)
{
if (m_normalDiffHeader.exactMatch(*m_diffIterator))
const auto normalDiffHeaderMatch = m_normalDiffHeader.match(*m_diffIterator);
if (normalDiffHeaderMatch.hasMatch())
{
qCDebug(LIBKOMPAREDIFF2) << "Matched length Header = " << m_normalDiffHeader.matchedLength();
qCDebug(LIBKOMPAREDIFF2) << "Matched string Header = " << m_normalDiffHeader.cap(0);
qCDebug(LIBKOMPAREDIFF2) << "Matched length Header = " << normalDiffHeaderMatch.capturedLength();
qCDebug(LIBKOMPAREDIFF2) << "Matched string Header = " << normalDiffHeaderMatch.captured(0);
m_currentModel = new DiffModel();
m_currentModel->setSourceFile(m_normalDiffHeader.cap(1));
m_currentModel->setDestinationFile(m_normalDiffHeader.cap(1));
m_currentModel->setSourceFile(normalDiffHeaderMatch.captured(1));
m_currentModel->setDestinationFile(normalDiffHeaderMatch.captured(1));
result = true;
......
......@@ -15,8 +15,8 @@ using namespace Diff2;
DiffParser::DiffParser(const KompareModelList* list, const QStringList& diff) : ParserBase(list, diff)
{
// The regexps needed for context diff parsing, the rest is the same as in parserbase.cpp
m_contextDiffHeader1.setPattern(QStringLiteral("\\*\\*\\* ([^\\t]+)(\\t([^\\t]+))?\\n"));
m_contextDiffHeader2.setPattern(QStringLiteral("--- ([^\\t]+)(\\t([^\\t]+))?\\n"));
m_contextDiffHeader1.setPattern(QRegularExpression::anchoredPattern(QStringLiteral("\\*\\*\\* ([^\\t]+)(\\t([^\\t]+))?\\n")));
m_contextDiffHeader2.setPattern(QRegularExpression::anchoredPattern(QStringLiteral("--- ([^\\t]+)(\\t([^\\t]+))?\\n")));
}
DiffParser::~DiffParser()
......
......@@ -80,7 +80,7 @@ ParserBase::ParserBase(const KompareModelList* list, const QStringList& diff) :
m_contextHunkBodyLine.setPattern(QStringLiteral("[-\\+! ] (.*)"));
// This regexp sucks... i'll see what happens
m_normalDiffHeader.setPattern(QStringLiteral("diff (?:(?:-|--)[a-zA-Z0-9=\\\"]+ )*(?:|-- +)(.*) +(.*)\\n"));
m_normalDiffHeader.setPattern(QRegularExpression::anchoredPattern(QStringLiteral("diff (?:(?:-|--)[a-zA-Z0-9=\\\"]+ )*(?:|-- +)(.*) +(.*)\\n")));
m_normalHunkHeaderAdded.setPattern(QStringLiteral("([0-9]+)a([0-9]+)(|,[0-9]+)(.*)\\n"));
m_normalHunkHeaderRemoved.setPattern(QStringLiteral("([0-9]+)(|,[0-9]+)d([0-9]+)(.*)\\n"));
......@@ -90,8 +90,8 @@ ParserBase::ParserBase(const KompareModelList* list, const QStringList& diff) :
m_normalHunkBodyAdded.setPattern(QStringLiteral("> (.*)"));
m_normalHunkBodyDivider.setPattern(QStringLiteral("---\\n"));
m_unifiedDiffHeader1.setPattern(QStringLiteral("--- ([^\\t]+)(?:\\t([^\\t]+)(?:\\t?)(.*))?\\n"));
m_unifiedDiffHeader2.setPattern(QStringLiteral("\\+\\+\\+ ([^\\t]+)(?:\\t([^\\t]+)(?:\\t?)(.*))?\\n"));
m_unifiedDiffHeader1.setPattern(QRegularExpression::anchoredPattern(QStringLiteral("--- ([^\\t]+)(?:\\t([^\\t]+)(?:\\t?)(.*))?\\n")));
m_unifiedDiffHeader2.setPattern(QRegularExpression::anchoredPattern(QStringLiteral("\\+\\+\\+ ([^\\t]+)(?:\\t([^\\t]+)(?:\\t?)(.*))?\\n")));
m_unifiedHunkHeader.setPattern(QStringLiteral("@@ -([0-9]+)(|,([0-9]+)) \\+([0-9]+)(|,([0-9]+)) @@(?: ?)(.*)\\n"));
m_unifiedHunkBodyAdded.setPattern(QStringLiteral("\\+(.*)"));
m_unifiedHunkBodyRemoved.setPattern(QStringLiteral("-(.*)"));
......@@ -151,22 +151,24 @@ bool ParserBase::parseContextDiffHeader()
while (m_diffIterator != m_diffLines.end())
{
if (!m_contextDiffHeader1.exactMatch(*(m_diffIterator)++))
const auto contextDiffHeader1Match = m_contextDiffHeader1.match(*(m_diffIterator)++);
if (!contextDiffHeader1Match.hasMatch())
{
continue;
}
// qCDebug(LIBKOMPAREDIFF2) << "Matched length Header1 = " << m_contextDiffHeader1.matchedLength();
// qCDebug(LIBKOMPAREDIFF2) << "Matched string Header1 = " << m_contextDiffHeader1.cap( 0 );
if (m_diffIterator != m_diffLines.end() && m_contextDiffHeader2.exactMatch(*m_diffIterator))
// qCDebug(LIBKOMPAREDIFF2) << "Matched length Header1 = " << contextDiffHeader1Match.capturedLength();
// qCDebug(LIBKOMPAREDIFF2) << "Matched string Header1 = " << contextDiffHeader1Match.captured( 0 );
const auto contextDiffHeader2Match = m_contextDiffHeader2.match(*m_diffIterator);
if (m_diffIterator != m_diffLines.end() && contextDiffHeader2Match.hasMatch())
{
// qCDebug(LIBKOMPAREDIFF2) << "Matched length Header2 = " << m_contextDiffHeader2.matchedLength();
// qCDebug(LIBKOMPAREDIFF2) << "Matched string Header2 = " << m_contextDiffHeader2.cap( 0 );
// qCDebug(LIBKOMPAREDIFF2) << "Matched length Header2 = " << contextDiffHeader2Match.capturedLength();
// qCDebug(LIBKOMPAREDIFF2) << "Matched string Header2 = " << contextDiffHeader2Match.captured( 0 );
m_currentModel = new DiffModel(unescapePath(m_contextDiffHeader1.cap(1)), unescapePath(m_contextDiffHeader2.cap(1)));
m_currentModel->setSourceTimestamp(m_contextDiffHeader1.cap(3));
m_currentModel->setSourceRevision(m_contextDiffHeader1.cap(5));
m_currentModel->setDestinationTimestamp(m_contextDiffHeader2.cap(3));
m_currentModel->setDestinationRevision(m_contextDiffHeader2.cap(5));
m_currentModel = new DiffModel(unescapePath(contextDiffHeader1Match.captured(1)), unescapePath(contextDiffHeader2Match.captured(1)));
m_currentModel->setSourceTimestamp(contextDiffHeader1Match.captured(3));
m_currentModel->setSourceRevision(contextDiffHeader1Match.captured(5));
m_currentModel->setDestinationTimestamp(contextDiffHeader2Match.captured(3));
m_currentModel->setDestinationRevision(contextDiffHeader2Match.captured(5));
++m_diffIterator;
result = true;
......@@ -198,14 +200,15 @@ bool ParserBase::parseNormalDiffHeader()
while (m_diffIterator != m_diffLines.end())
{
if (m_normalDiffHeader.exactMatch(*m_diffIterator))
const auto normalDiffHeaderMatch = m_normalDiffHeader.match(*m_diffIterator);
if (normalDiffHeaderMatch.hasMatch())
{
// qCDebug(LIBKOMPAREDIFF2) << "Matched length Header = " << m_normalDiffHeader.matchedLength();
// qCDebug(LIBKOMPAREDIFF2) << "Matched string Header = " << m_normalDiffHeader.cap( 0 );
// qCDebug(LIBKOMPAREDIFF2) << "Matched length Header = " << normalDiffHeaderMatch.capturedLength();
// qCDebug(LIBKOMPAREDIFF2) << "Matched string Header = " << normalDiffHeaderMatch.captured( 0 );
m_currentModel = new DiffModel();
m_currentModel->setSourceFile(unescapePath(m_normalDiffHeader.cap(1)));
m_currentModel->setDestinationFile(unescapePath(m_normalDiffHeader.cap(2)));
m_currentModel->setSourceFile(unescapePath(normalDiffHeaderMatch.captured(1)));
m_currentModel->setDestinationFile(unescapePath(normalDiffHeaderMatch.captured(2)));
result = true;
......@@ -242,21 +245,23 @@ bool ParserBase::parseUnifiedDiffHeader()
while (m_diffIterator != m_diffLines.end()) // do not assume we start with the diffheader1 line
{
if (!m_unifiedDiffHeader1.exactMatch(*m_diffIterator))
const auto unifiedDiffHeader1Match = m_unifiedDiffHeader1.match(*m_diffIterator);
if (!unifiedDiffHeader1Match.hasMatch())
{
++m_diffIterator;
continue;
}
// qCDebug(LIBKOMPAREDIFF2) << "Matched length Header1 = " << m_unifiedDiffHeader1.matchedLength();
// qCDebug(LIBKOMPAREDIFF2) << "Matched string Header1 = " << m_unifiedDiffHeader1.cap( 0 );
// qCDebug(LIBKOMPAREDIFF2) << "Matched length Header1 = " << unifiedDiffHeader1Match.capturedLength();
// qCDebug(LIBKOMPAREDIFF2) << "Matched string Header1 = " << unifiedDiffHeader1Match.captured( 0 );
++m_diffIterator;
if (m_diffIterator != m_diffLines.end() && m_unifiedDiffHeader2.exactMatch(*m_diffIterator))
const auto unifiedDiffHeader2Match = m_unifiedDiffHeader2.match(*m_diffIterator);
if (m_diffIterator != m_diffLines.end() && unifiedDiffHeader2Match.hasMatch())
{
m_currentModel = new DiffModel(unescapePath(m_unifiedDiffHeader1.cap(1)), unescapePath(m_unifiedDiffHeader2.cap(1)));
m_currentModel->setSourceTimestamp(m_unifiedDiffHeader1.cap(2));
m_currentModel->setSourceRevision(m_unifiedDiffHeader1.cap(4));
m_currentModel->setDestinationTimestamp(m_unifiedDiffHeader2.cap(2));
m_currentModel->setDestinationRevision(m_unifiedDiffHeader2.cap(4));
m_currentModel = new DiffModel(unescapePath(unifiedDiffHeader1Match.captured(1)), unescapePath(unifiedDiffHeader2Match.captured(1)));
m_currentModel->setSourceTimestamp(unifiedDiffHeader1Match.captured(2));
m_currentModel->setSourceRevision(unifiedDiffHeader1Match.captured(4));
m_currentModel->setDestinationTimestamp(unifiedDiffHeader2Match.captured(2));
m_currentModel->setDestinationRevision(unifiedDiffHeader2Match.captured(4));
++m_diffIterator;
result = true;
......@@ -660,10 +665,10 @@ bool ParserBase::parseUnifiedHunkBody()
return true;
}
void ParserBase::checkHeader(const QRegExp& header)
void ParserBase::checkHeader(const QRegularExpression& header)
{
if (m_diffIterator != m_diffLines.end()
&& !header.exactMatch(*m_diffIterator)
&& !header.match(*m_diffIterator).hasMatch()
&& !m_diffIterator->startsWith(QLatin1String("Index: ")) /* SVN diff */
&& !m_diffIterator->startsWith(QLatin1String("diff ")) /* concatenated diff */
&& !m_diffIterator->startsWith(QLatin1String("-- ")) /* git format-patch */)
......
......@@ -8,6 +8,7 @@ SPDX-License-Identifier: GPL-2.0-or-later
#ifndef DIFF2_PARSERBASE_H
#define DIFF2_PARSERBASE_H
#include <QRegularExpression>
#include <QRegExp>
#include <QStringList>
......@@ -63,7 +64,7 @@ protected:
protected: // Helper methods to speed things up
bool matchesUnifiedHunkLine(const QString& line) const;
void checkHeader(const QRegExp& header);
void checkHeader(const QRegularExpression& header);
protected:
/** What is format of the diff */
......@@ -71,8 +72,8 @@ protected:
protected:
// Regexps for context parsing
QRegExp m_contextDiffHeader1;
QRegExp m_contextDiffHeader2;
QRegularExpression m_contextDiffHeader1;
QRegularExpression m_contextDiffHeader2;
QRegExp m_contextHunkHeader1;
QRegExp m_contextHunkHeader2;
......@@ -85,7 +86,7 @@ protected:
QRegExp m_contextHunkBodyLine; // Added for convenience
// Regexps for normal parsing
QRegExp m_normalDiffHeader;
QRegularExpression m_normalDiffHeader;
QRegExp m_normalHunkHeaderAdded;
QRegExp m_normalHunkHeaderRemoved;
......@@ -98,11 +99,11 @@ protected:
enum Difference::Type m_normalDiffType;
// RegExps for rcs parsing
QRegExp m_rcsDiffHeader;
QRegularExpression m_rcsDiffHeader;
// Regexps for unified parsing
QRegExp m_unifiedDiffHeader1;
QRegExp m_unifiedDiffHeader2;
QRegularExpression m_unifiedDiffHeader1;
QRegularExpression m_unifiedDiffHeader2;
QRegExp m_unifiedHunkHeader;
......
......@@ -15,14 +15,14 @@ using namespace Diff2;
PerforceParser::PerforceParser(const KompareModelList* list, const QStringList& diff) : ParserBase(list, diff)
{
m_contextDiffHeader1.setPattern(QStringLiteral("==== (.*) - (.*) ====\\n"));
m_contextDiffHeader1.setMinimal(true);
m_normalDiffHeader.setPattern(QStringLiteral("==== (.*) - (.*) ====\\n"));
m_normalDiffHeader.setMinimal(true);
m_rcsDiffHeader.setPattern(QStringLiteral("==== (.*) - (.*) ====\\n"));
m_rcsDiffHeader.setMinimal(true);
m_unifiedDiffHeader1.setPattern(QStringLiteral("==== (.*) - (.*) ====\\n"));
m_unifiedDiffHeader1.setMinimal(true);
m_contextDiffHeader1.setPattern(QRegularExpression::anchoredPattern(QStringLiteral("==== (.*) - (.*) ====\\n")));
m_contextDiffHeader1.setPatternOptions(QRegularExpression::InvertedGreedinessOption);
m_normalDiffHeader.setPattern(QRegularExpression::anchoredPattern(QStringLiteral("==== (.*) - (.*) ====\\n")));
m_normalDiffHeader.setPatternOptions(QRegularExpression::InvertedGreedinessOption);
m_rcsDiffHeader.setPattern(QRegularExpression::anchoredPattern(QStringLiteral("==== (.*) - (.*) ====\\n")));
m_rcsDiffHeader.setPatternOptions(QRegularExpression::InvertedGreedinessOption);
m_unifiedDiffHeader1.setPattern(QRegularExpression::anchoredPattern(QStringLiteral("==== (.*) - (.*) ====\\n")));
m_unifiedDiffHeader1.setPatternOptions(QRegularExpression::InvertedGreedinessOption);
}
PerforceParser::~PerforceParser()
......@@ -81,16 +81,17 @@ bool PerforceParser::parseContextDiffHeader()
while (m_diffIterator != itEnd)
{
if (m_contextDiffHeader1.exactMatch(*(m_diffIterator)++))
const auto contextDiffHeader1Match = m_contextDiffHeader1.match(*(m_diffIterator)++);
if (contextDiffHeader1Match.hasMatch())
{
// qCDebug(LIBKOMPAREDIFF2) << "Matched length Header1 = " << m_contextDiffHeader1.matchedLength();
// qCDebug(LIBKOMPAREDIFF2) << "Matched string Header1 = " << m_contextDiffHeader1.cap( 0 );
// qCDebug(LIBKOMPAREDIFF2) << "First capture Header1 = " << m_contextDiffHeader1.cap( 1 );
// qCDebug(LIBKOMPAREDIFF2) << "Second capture Header1 = " << m_contextDiffHeader1.cap( 2 );
// qCDebug(LIBKOMPAREDIFF2) << "Matched length Header1 = " << contextDiffHeader1Match.capturedLength();
// qCDebug(LIBKOMPAREDIFF2) << "Matched string Header1 = " << contextDiffHeader1Match.captured( 0 );
// qCDebug(LIBKOMPAREDIFF2) << "First capture Header1 = " << contextDiffHeader1Match.captured( 1 );
// qCDebug(LIBKOMPAREDIFF2) << "Second capture Header1 = " << contextDiffHeader1Match.captured( 2 );
m_currentModel = new DiffModel();
const auto sourceFileREMatch = sourceFileRE.match(m_contextDiffHeader1.cap(1));
const auto destinationFileREMatch = destinationFileRE.match(m_contextDiffHeader1.cap(2));
const auto sourceFileREMatch = sourceFileRE.match(contextDiffHeader1Match.captured(1));
const auto destinationFileREMatch = destinationFileRE.match(contextDiffHeader1Match.captured(2));
qCDebug(LIBKOMPAREDIFF2) << "Matched length = " << sourceFileREMatch.capturedLength();
qCDebug(LIBKOMPAREDIFF2) << "Matched length = " << destinationFileREMatch.capturedLength();
qCDebug(LIBKOMPAREDIFF2) << "Captured texts = " << sourceFileREMatch.capturedTexts();
......@@ -106,8 +107,8 @@ bool PerforceParser::parseContextDiffHeader()
}
else
{
qCDebug(LIBKOMPAREDIFF2) << "Matched length = " << m_contextDiffHeader1.matchedLength();
qCDebug(LIBKOMPAREDIFF2) << "Captured texts = " << m_contextDiffHeader1.capturedTexts();
qCDebug(LIBKOMPAREDIFF2) << "Matched length = " << contextDiffHeader1Match.capturedLength();
qCDebug(LIBKOMPAREDIFF2) << "Captured texts = " << contextDiffHeader1Match.capturedTexts();
}
}
......@@ -127,16 +128,17 @@ bool PerforceParser::parseNormalDiffHeader()
{
qCDebug(LIBKOMPAREDIFF2) << "Line = " << *m_diffIterator;
qCDebug(LIBKOMPAREDIFF2) << "String length = " << (*m_diffIterator).length();
if (m_normalDiffHeader.exactMatch(*(m_diffIterator)++))
const auto normalDiffHeaderMatch = m_normalDiffHeader.match(*(m_diffIterator)++);
if (normalDiffHeaderMatch.hasMatch())
{
qCDebug(LIBKOMPAREDIFF2) << "Matched length Header1 = " << m_normalDiffHeader.matchedLength();
qCDebug(LIBKOMPAREDIFF2) << "Matched string Header1 = " << m_normalDiffHeader.cap(0);
qCDebug(LIBKOMPAREDIFF2) << "First capture Header1 = \"" << m_normalDiffHeader.cap(1) << "\"";
qCDebug(LIBKOMPAREDIFF2) << "Second capture Header1 = \"" << m_normalDiffHeader.cap(2) << "\"";
qCDebug(LIBKOMPAREDIFF2) << "Matched length Header1 = " << normalDiffHeaderMatch.capturedLength();
qCDebug(LIBKOMPAREDIFF2) << "Matched string Header1 = " << normalDiffHeaderMatch.captured(0);
qCDebug(LIBKOMPAREDIFF2) << "First capture Header1 = \"" << normalDiffHeaderMatch.captured(1) << "\"";
qCDebug(LIBKOMPAREDIFF2) << "Second capture Header1 = \"" << normalDiffHeaderMatch.captured(2) << "\"";
m_currentModel = new DiffModel();
const auto sourceFileREMatch = sourceFileRE.match(m_normalDiffHeader.cap(1));
const auto destinationFileREMatch = destinationFileRE.match(m_normalDiffHeader.cap(2));
const auto sourceFileREMatch = sourceFileRE.match(normalDiffHeaderMatch.captured(1));
const auto destinationFileREMatch = destinationFileRE.match(normalDiffHeaderMatch.captured(2));
qCDebug(LIBKOMPAREDIFF2) << "Matched length = " << sourceFileREMatch.capturedLength();
qCDebug(LIBKOMPAREDIFF2) << "Matched length = " << destinationFileREMatch.capturedLength();
qCDebug(LIBKOMPAREDIFF2) << "Captured texts = " << sourceFileREMatch.capturedTexts();
......@@ -152,8 +154,8 @@ bool PerforceParser::parseNormalDiffHeader()
}
else
{
qCDebug(LIBKOMPAREDIFF2) << "Matched length = " << m_normalDiffHeader.matchedLength();
qCDebug(LIBKOMPAREDIFF2) << "Captured texts = " << m_normalDiffHeader.capturedTexts();
qCDebug(LIBKOMPAREDIFF2) << "Matched length = " << normalDiffHeaderMatch.capturedLength();
qCDebug(LIBKOMPAREDIFF2) << "Captured texts = " << normalDiffHeaderMatch.capturedTexts();
}
}
......@@ -178,16 +180,17 @@ bool PerforceParser::parseUnifiedDiffHeader()
{
// qCDebug(LIBKOMPAREDIFF2) << "Line = " << *m_diffIterator;
// qCDebug(LIBKOMPAREDIFF2) << "String length = " << (*m_diffIterator).length();
if (m_unifiedDiffHeader1.exactMatch(*(m_diffIterator)++))
const auto unifiedDiffHeader1Match = m_unifiedDiffHeader1.match(*(m_diffIterator)++);
if (unifiedDiffHeader1Match.hasMatch())
{
// qCDebug(LIBKOMPAREDIFF2) << "Matched length Header1 = " << m_unifiedDiffHeader1.matchedLength();
// qCDebug(LIBKOMPAREDIFF2) << "Matched string Header1 = " << m_unifiedDiffHeader1.cap( 0 );
// qCDebug(LIBKOMPAREDIFF2) << "First capture Header1 = \"" << m_unifiedDiffHeader1.cap( 1 ) << "\"";
// qCDebug(LIBKOMPAREDIFF2) << "Second capture Header1 = \"" << m_unifiedDiffHeader1.cap( 2 ) << "\"";
// qCDebug(LIBKOMPAREDIFF2) << "Matched length Header1 = " << unifiedDiffHeader1Match.capturedLength();
// qCDebug(LIBKOMPAREDIFF2) << "Matched string Header1 = " << unifiedDiffHeader1Match.captured( 0 );
// qCDebug(LIBKOMPAREDIFF2) << "First capture Header1 = \"" << unifiedDiffHeader1Match.captured( 1 ) << "\"";
// qCDebug(LIBKOMPAREDIFF2) << "Second capture Header1 = \"" << unifiedDiffHeader1Match.captured( 2 ) << "\"";
m_currentModel = new DiffModel();
const auto sourceFileREMatch = sourceFileRE.match(m_unifiedDiffHeader1.cap(1));
const auto destinationFileREMatch = destinationFileRE.match(m_unifiedDiffHeader1.cap(2));
const auto sourceFileREMatch = sourceFileRE.match(unifiedDiffHeader1Match.captured(1));
const auto destinationFileREMatch = destinationFileRE.match(unifiedDiffHeader1Match.captured(2));
// qCDebug(LIBKOMPAREDIFF2) << "Matched length = " << sourceFileREMatch.capturedLength();
// qCDebug(LIBKOMPAREDIFF2) << "Matched length = " << destinationFileREMatch.capturedLength();
// qCDebug(LIBKOMPAREDIFF2) << "Captured texts = " << sourceFileREMatch.capturedTexts();
......@@ -203,8 +206,8 @@ bool PerforceParser::parseUnifiedDiffHeader()
}
else
{
// qCDebug(LIBKOMPAREDIFF2) << "Matched length = " << m_unifiedDiffHeader1.matchedLength();
// qCDebug(LIBKOMPAREDIFF2) << "Captured texts = " << m_unifiedDiffHeader1.capturedTexts();
// qCDebug(LIBKOMPAREDIFF2) << "Matched length = " << unifiedDiffHeader1Match.capturedLength();
// qCDebug(LIBKOMPAREDIFF2) << "Captured texts = " << unifiedDiffHeader1Match.capturedTexts();
}
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment