bcosca/fatfree — pull request #101 by WilliamStam (2012-09-17 18:06:05+00:00)
Title: Text Stats

$diff = text::diff($old,$new,$delim);

Stats
added: $diff['stats']['added'])
removed: $diff['stats']['removed']
old: $diff['stats']['old'] *
new: $diff['stats']['new'] *
percent: $diff['stats']['percent']

ie: added: 44 | removed: 38 | old: 66 | new: 72 | percent: 57.575757575758

* count of matched parts