| 634 | */ |
| 635 | protected: |
| 636 | struct LinePtr : std::pair<typename string_t::const_pointer, size_t> { |
| 637 | LinePtr() =default; |
| 638 | LinePtr(typename string_t::const_pointer p, size_t n) : std::pair<typename string_t::const_pointer, size_t>(p, n) {} |
| 639 | bool operator<(const LinePtr& p) const |
| 640 | { return this->second < p.second? true : this->second > p.second? false : string_t::traits_type::compare(this->first, p.first, this->second) < 0; } |
| 641 | }; |
| 642 | struct Lines : std::vector<LinePtr> { string_t text1, text2; }; |
| 643 | |
| 644 | static void diff_linesToChars(string_t &text1, string_t &text2, Lines& lineArray) { |
no outgoing calls
no test coverage detected