scaffold  1.0.0
Generates files and directories based on templates and user input
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
Diff Class Reference

#include <diff_match_patch.h>

Public Member Functions

 Diff (Operation _operation, const QString &_text)
 
bool isNull () const
 
QString toString () const
 
bool operator== (const Diff &d) const
 
bool operator!= (const Diff &d) const
 

Static Public Member Functions

static QString strOperation (Operation op)
 

Public Attributes

Operation operation
 
QString text
 

Detailed Description

Class representing one diff operation.

Constructor & Destructor Documentation

Diff::Diff ( Operation  _operation,
const QString &  _text 
)

Constructor. Initializes the diff with the provided values.

Parameters
operationOne of INSERT, DELETE or EQUAL.
textThe text being applied.

Constructor. Initializes the diff with the provided values.

Parameters
operationOne of INSERT, DELETE or EQUAL
textThe text being applied

Member Function Documentation

bool Diff::operator== ( const Diff d) const

Is this Diff equivalent to another Diff?

Parameters
dAnother Diff to compare against
Returns
true or false
QString Diff::toString ( ) const

Display a human-readable version of this Diff.

Returns
text version

The documentation for this class was generated from the following files: