SGL
Enumerations | Functions | Variables
diff Namespace Reference

Enumerations

enum  DiffFlags { IGNORE_NONE = 0x0, IGNORE_LEADING = 0x1, IGNORE_TRAILING = 0x2, IGNORE_WHITESPACE = 0x4, IGNORE_BLANKLINES = 0x8, IGNORE_CASE = 0x10, IGNORE_NUMBERS = 0x20, IGNORE_NONNUMBERS = 0x40, IGNORE_PUNCTUATION = 0x80, IGNORE_AFTERDECIMAL = 0x100, IGNORE_CHARORDER = 0x200, IGNORE_LINEORDER = 0x400, IGNORE_EVERYTHING = 0x100000 }
 

Functions

string diff(string s1, string s2, int flags)
 
bool diffPass(string s1, string s2, int flags)
 
bool isDiffMatch(string diffs)
 

Variables

const int DIFF_DEFAULT_FLAGS = IGNORE_CASE | IGNORE_TRAILING | IGNORE_WHITESPACE | IGNORE_PUNCTUATION
 
const int DIFF_STRICT_FLAGS = IGNORE_TRAILING
 
const string NO_DIFFS_MESSAGE = "No differences found"
 

Enumeration Type Documentation

◆ DiffFlags

enum DiffFlags
Enumerator
IGNORE_NONE 
IGNORE_LEADING 
IGNORE_TRAILING 
IGNORE_WHITESPACE 
IGNORE_BLANKLINES 
IGNORE_CASE 
IGNORE_NUMBERS 
IGNORE_NONNUMBERS 
IGNORE_PUNCTUATION 
IGNORE_AFTERDECIMAL 
IGNORE_CHARORDER 
IGNORE_LINEORDER 
IGNORE_EVERYTHING 

Function Documentation

◆ diff()

string diff ( string  s1,
string  s2,
int  flags 
)

◆ diffPass()

bool diffPass ( string   s1,
string   s2,
int  flags 
)

◆ isDiffMatch()

bool isDiffMatch ( string   diffs)

Variable Documentation

◆ DIFF_DEFAULT_FLAGS

const int DIFF_DEFAULT_FLAGS = IGNORE_CASE | IGNORE_TRAILING | IGNORE_WHITESPACE | IGNORE_PUNCTUATION

◆ DIFF_STRICT_FLAGS

const int DIFF_STRICT_FLAGS = IGNORE_TRAILING

◆ NO_DIFFS_MESSAGE

const string NO_DIFFS_MESSAGE = "No differences found"