mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-05-15 22:02:49 -06:00
23 lines
605 B
C++
23 lines
605 B
C++
#ifndef _CompDir_textdiff_h_
|
|
#define _CompDir_textdiff_h_
|
|
|
|
class TextSection
|
|
{
|
|
public:
|
|
TextSection(int start1, int count1, int start2, int count2, bool same)
|
|
: start1(start1), count1(count1), start2(start2), count2(count2), same(same) {}
|
|
|
|
public:
|
|
int start1;
|
|
int count1;
|
|
int start2;
|
|
int count2 : 31;
|
|
unsigned same : 1;
|
|
};
|
|
|
|
Array<TextSection> CompareLineMaps(const Vector<String>& l1, const Vector<String>& l2);
|
|
Vector<String> GetLineMap(Stream& stream);
|
|
Vector<String> GetFileLineMap(const String& path);
|
|
Vector<String> GetStringLineMap(const String &s);
|
|
|
|
#endif
|