| 1477 | */ |
| 1478 | public: |
| 1479 | static string_t diff_text2(const Diffs &diffs) { |
| 1480 | string_t text; |
| 1481 | for (typename Diffs::const_iterator cur_diff = diffs.begin(); cur_diff != diffs.end(); ++cur_diff) { |
| 1482 | if ((*cur_diff).operation != DELETE) { |
| 1483 | text += (*cur_diff).text; |
| 1484 | } |
| 1485 | } |
| 1486 | return text; |
| 1487 | } |
| 1488 | |
| 1489 | /** |
| 1490 | * Compute the Levenshtein distance; the number of inserted, deleted or |