Workspace 6.21.5
|
#include <Tools/Widgets/textdifferencer.h>
Public Member Functions | |
TextDifference () | |
TextDifference (Type action, const QString &_text) | |
bool | isNull () const |
bool | operator!= (const TextDifference &d) const |
bool | operator== (const TextDifference &d) const |
QString | toString () const |
Display a human-readable version of this Diff. | |
Static Public Member Functions | |
static QString | toString (Type action) |
Public Attributes | |
QString | text_ |
Type | type_ {Type::Ignore} |
Class representing one diff operation.
TextDifference | ( | Type | type, |
const QString & | text | ||
) |
Constructor. Initializes the TextDifference with the provided values.
type | One of Type::Append, Type::Remove or Type::Ignore |
text | The text being applied |
TextDifference | ( | ) |
|
inline |
bool operator!= | ( | const TextDifference & | d | ) | const |
bool operator== | ( | const TextDifference & | d | ) | const |
Is this TextDifference equivalent to another TextDifference?
d | Another TextDifference to compare against |
QString toString | ( | ) | const |
|
static |
QString text_ |
Type type_ {Type::Ignore} |