■
public static DiffResult[] Diff( string textA, string textB, DiffOption option ) { if ( string.IsNullOrEmpty( textA ) || string.IsNullOrEmpty( textB ) ) return StringNullOrEmpty( textA, textB ); FastDiff diff = new FastDiff(); if ( textA.Length <= textB.Length ) { diff.SplitHash( textA, textB, option ); } else { diff.isSwap = true; diff.SplitHash( textB, textA, option ); } return diff.DetectDiff(); }2007-03-15
これ、textA.Length <= textB.Length だと拙くない?