MCPcopy Create free account
hub / github.com/Codeya-IDE/deepin-ide / TextLineData

Class TextLineData

src/plugins/git/utils/diffutils.h:51–73  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

49};
50
51class TextLineData
52{
53public:
54 enum TextLineType {
55 TextLine,
56 Separator,
57 Invalid
58 };
59 TextLineData() = default;
60 TextLineData(const QString &txt)
61 : text(txt), textLineType(TextLine) {}
62 TextLineData(TextLineType t)
63 : textLineType(t) {}
64 QString text;
65 /*
66 * <start position, end position>
67 * <-1, n> means this is a continuation from the previous line
68 * <n, -1> means this will be continued in the next line
69 * <-1, -1> the whole line is a continuation (from the previous line to the next line)
70 */
71 QMap<int, int> changedPositions; // counting from the beginning of the line
72 TextLineType textLineType = Invalid;
73};
74
75class RowData
76{

Callers 3

calculateOriginalDataMethod · 0.85
handleLineMethod · 0.85
assemblyRowsMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected