lokalize
diff.cpp
Go to the documentation of this file.
6 (based on Markus Stengel's GPL implementation of LCS-Delta algorithm as it is described in "Introduction to Algorithms", MIT Press, 2001, Second Edition, written by Thomas H. Cormen et. al. It uses dynamic programming to solve the Longest Common Subsequence (LCS) problem. - http://www.markusstengel.de/text/en/i_4_1_5_3.html)
369 static void prepareLists(QString str, QStringList& main, QStringList& space, const QString& accel, QString markup)
456 res.replace("{KBABELADD}","<font style=\"background-color:"%Settings::addColor().name()%";color:black\">");
458 res.replace("{KBABELDEL}","<font style=\"background-color:"%Settings::delColor().name()%";color:black\">");
int pos(int nth) const
QString cap(int nth) const
QStringList calcLCS(const QStringList &s1Words, const QStringList &s2Words, const QStringList &s1Space, const QStringList &s2Space)
Definition: diff.cpp:251
QString wordDiff(QStringList s1, QStringList s2)
This is low-level wrapper used for evaluating translation memory search results.
Definition: diff.cpp:342
Definition: diff.cpp:43
QStringList split(const QString &sep, SplitBehavior behavior, Qt::CaseSensitivity cs) const
QString & prepend(QChar ch)
void removeFirst()
QString userVisibleWordDiff(const QString &str1ForMatching, const QString &str2ForMatching, const QString &accel, const QString &markup, int options)
Definition: diff.cpp:408
const T & at(int i) const
int size() const
void removeAt(int i)
QString join(const QString &separator) const
QString & remove(int position, int n)
int matchedLength() const
int indexIn(const QString &str, int offset, CaretMode caretMode) const
void clear()
int count(const T &value) const
void append(const T &value)
bool isEmpty() const
bool isEmpty() const
QStringList & replaceInStrings(const QString &before, const QString &after, Qt::CaseSensitivity cs)
T & first()
Definition: diff.cpp:45
Definition: diff.cpp:44
QString & replace(int position, int n, QChar after)
Definition: diff.cpp:46
const T & at(int i) const
static QStringList prepareForInternalDiff(const QString &str)
Definition: diff.cpp:131
const QChar at(int position) const
Definition: diff.cpp:42
void prepend(const T &value)
const_iterator constBegin() const
static void prepareLists(QString str, QStringList &main, QStringList &space, const QString &accel, QString markup)
Definition: diff.cpp:369
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:40:06 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:40:06 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.