(a [][]byte, alo int, ahi int, b [][]byte, blo int, bhi int)
| 799 | } |
| 800 | |
| 801 | func (d *Differ) fancyHelper(a [][]byte, alo int, ahi int, b [][]byte, blo int, bhi int) (out [][]byte) { |
| 802 | if alo < ahi { |
| 803 | if blo < bhi { |
| 804 | out, _ = d.FancyReplace(a, alo, ahi, b, blo, bhi) |
| 805 | } else { |
| 806 | out = d.Dump(MINUS, a, alo, ahi) |
| 807 | } |
| 808 | } else if blo < bhi { |
| 809 | out = d.Dump(PLUS, b, blo, bhi) |
| 810 | } else { |
| 811 | out = [][]byte{} |
| 812 | } |
| 813 | return out |
| 814 | } |
| 815 | |
| 816 | func (d *Differ) QFormat(aline []byte, bline []byte, atags []byte, btags []byte) (out [][]byte) { |
| 817 | // Format "?" output and deal with leading tabs. |
no test coverage detected