24 #ifndef _private_diff_h 25 #define _private_diff_h 33 const string NO_DIFFS_MESSAGE =
"No differences found";
38 IGNORE_TRAILING = 0x2,
39 IGNORE_WHITESPACE = 0x4,
40 IGNORE_BLANKLINES = 0x8,
42 IGNORE_NUMBERS = 0x20,
43 IGNORE_NONNUMBERS = 0x40,
44 IGNORE_PUNCTUATION = 0x80,
45 IGNORE_AFTERDECIMAL = 0x100,
46 IGNORE_CHARORDER = 0x200,
47 IGNORE_LINEORDER = 0x400,
48 IGNORE_EVERYTHING = 0x100000
51 const int DIFF_STRICT_FLAGS = IGNORE_TRAILING;
52 const int DIFF_DEFAULT_FLAGS = IGNORE_CASE | IGNORE_TRAILING | IGNORE_WHITESPACE | IGNORE_PUNCTUATION;
54 string diff(string s1, string s2,
int flags = DIFF_DEFAULT_FLAGS);
55 bool diffPass(
const string& s1,
const string& s2,
int flags = DIFF_DEFAULT_FLAGS);
56 bool isDiffMatch(
const string& diffs);
62 #endif // _private_diff_h