| 1841 | */ |
| 1842 | public: |
| 1843 | Patches patch_make(const string_t &text1, const string_t &text2) const { |
| 1844 | // No diffs provided, compute our own. |
| 1845 | Diffs diffs = diff_main(text1, text2, true); |
| 1846 | if (diffs.size() > 2) { |
| 1847 | diff_cleanupSemantic(diffs); |
| 1848 | diff_cleanupEfficiency(diffs); |
| 1849 | } |
| 1850 | |
| 1851 | return patch_make(text1, diffs); |
| 1852 | } |
| 1853 | |
| 1854 | /** |
| 1855 | * Compute a list of patches to turn text1 into text2. |