weDiffLib.h File Reference

Difference building operations and structures. More...

#include <string>
#include <vector>
#include <set>
#include <map>
#include <boost/variant.hpp>
#include <boost/algorithm/string/predicate.hpp>

Go to the source code of this file.

Classes

struct  WeCmpBlock
struct  WeDiffLibWord
 Text element to compare. More...

Typedefs

typedef variant< string,
iweEntity * > 
WeCmpEntity
typedef vector< WeCmpBlock * > WeCmpResults
typedef vector< WeDiffLibWordWeDiffLibWordList

Enumerations

enum  weCmpState {
  weCmpNonComparable = -99, weCmpDeleted = -2, weCmpLess = -1, weCmpEqual = 0,
  weCmpGreather = 1, weCmpInserted = 2
}
enum  weCmpMode { CmpMask = 0xFFFFFFFF }

Functions

WeDiffLibWordListWeDiffLibTextToList (string txt, weCmpMode mode)
WeCmpResultsWeTextDiff (string txt1, string txt2, weCmpMode mode=weCmpDefault)

Variables

static const weCmpMode weCmpNothing = (weCmpMode)0x0000
static const weCmpMode weCmpInnerText = (weCmpMode)0x0001
static const weCmpMode weCmpCaseInsens = (weCmpMode)0x0002
static const weCmpMode weCmpCollapseSpace = (weCmpMode)0x0004
static const weCmpMode weCmpAttributes = (weCmpMode)0x0008
static const weCmpMode weCmpAttrValues = (weCmpMode)0x0010
static const weCmpMode weCmpAttrOrder = (weCmpMode)0x0020
static const weCmpMode weCmpChildren = (weCmpMode)0x0040
static const weCmpMode weCmpChildrenTree = (weCmpMode)0x0080
static const weCmpMode weCmpDefault = (weCmpMode)0xffff


Detailed Description

Difference building operations and structures.

Definition in file weDiffLib.h.


Typedef Documentation

typedef variant<string, iweEntity*> WeCmpEntity

Definition at line 46 of file weDiffLib.h.

typedef vector<WeCmpBlock*> WeCmpResults

Definition at line 55 of file weDiffLib.h.

Definition at line 97 of file weDiffLib.h.


Enumeration Type Documentation

enum weCmpMode

Enumerator:
CmpMask 

Definition at line 57 of file weDiffLib.h.

enum weCmpState

Enumerator:
weCmpNonComparable  comparison can't be performed, or error occurred
weCmpDeleted 
weCmpLess 
weCmpEqual 
weCmpGreather 
weCmpInserted 

Definition at line 37 of file weDiffLib.h.


Function Documentation

WeDiffLibWordList* WeDiffLibTextToList ( string  txt,
weCmpMode  mode 
)

Definition at line 25 of file weDiffLib.cpp.

WeCmpResults* WeTextDiff ( string  txt1,
string  txt2,
weCmpMode  mode = weCmpDefault 
)

Examples:
difflib.cpp.

Definition at line 73 of file weDiffLib.cpp.


Variable Documentation

const weCmpMode weCmpAttributes = (weCmpMode)0x0008 [static]

Definition at line 65 of file weDiffLib.h.

const weCmpMode weCmpAttrOrder = (weCmpMode)0x0020 [static]

Definition at line 67 of file weDiffLib.h.

const weCmpMode weCmpAttrValues = (weCmpMode)0x0010 [static]

Definition at line 66 of file weDiffLib.h.

const weCmpMode weCmpCaseInsens = (weCmpMode)0x0002 [static]

Examples:
difflib.cpp.

Definition at line 63 of file weDiffLib.h.

const weCmpMode weCmpChildren = (weCmpMode)0x0040 [static]

Definition at line 68 of file weDiffLib.h.

const weCmpMode weCmpChildrenTree = (weCmpMode)0x0080 [static]

Definition at line 69 of file weDiffLib.h.

const weCmpMode weCmpCollapseSpace = (weCmpMode)0x0004 [static]

Examples:
difflib.cpp.

Definition at line 64 of file weDiffLib.h.

const weCmpMode weCmpDefault = (weCmpMode)0xffff [static]

Definition at line 71 of file weDiffLib.h.

const weCmpMode weCmpInnerText = (weCmpMode)0x0001 [static]

Definition at line 62 of file weDiffLib.h.

const weCmpMode weCmpNothing = (weCmpMode)0x0000 [static]

Examples:
difflib.cpp.

Definition at line 61 of file weDiffLib.h.



 
©2009 Positive Technologies
 
Generated on Tue Jul 14 18:27:31 2009 for WebEngine by 
 
 
1.5.7
 
Get wpcObj at SourceForge.net. Fast, secure and Free Open Source software downloads