MCPcopy Create free account
hub / github.com/cxasm/notepad-- / SetLineStart

Method SetLineStart

src/qscint/scintilla/src/PositionCache.cpp:126–140  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

124}
125
126void LineLayout::SetLineStart(int line, int start) {
127 if ((line >= lenLineStarts) && (line != 0)) {
128 int newMaxLines = line + 20;
129 int *newLineStarts = new int[newMaxLines];
130 for (int i = 0; i < newMaxLines; i++) {
131 if (i < lenLineStarts)
132 newLineStarts[i] = lineStarts[i];
133 else
134 newLineStarts[i] = 0;
135 }
136 lineStarts.reset(newLineStarts);
137 lenLineStarts = newMaxLines;
138 }
139 lineStarts[line] = start;
140}
141
142void LineLayout::SetBracesHighlight(Range rangeLine, const Sci::Position braces[],
143 char bracesMatchStyle, int xHighlight, bool ignoreStyle) {

Callers 1

LayoutLineMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected