(a []string, alo int, ahi int, b []string, blo int, bhi int)
| 732 | } |
| 733 | |
| 734 | func (d *Differ) fancyHelper(a []string, alo int, ahi int, b []string, blo int, bhi int) (out []string) { |
| 735 | if alo < ahi { |
| 736 | if blo < bhi { |
| 737 | out, _ = d.FancyReplace(a, alo, ahi, b, blo, bhi) |
| 738 | } else { |
| 739 | out = d.Dump("-", a, alo, ahi) |
| 740 | } |
| 741 | } else if blo < bhi { |
| 742 | out = d.Dump("+", b, blo, bhi) |
| 743 | } else { |
| 744 | out = []string{} |
| 745 | } |
| 746 | return out |
| 747 | } |
| 748 | |
| 749 | func (d *Differ) QFormat(aline string, bline string, atags string, btags string) (out []string) { |
| 750 | // Format "?" output and deal with leading tabs. |
no test coverage detected