MCPcopy Create free account
hub / github.com/couchbase/fleece / LinePtr

Class LinePtr

Fleece/Support/diff_match_patch.hh:636–641  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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) {

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected