MCPcopy Create free account
hub / github.com/ProgerXP/Notepad2e / RestoreBracesHighlight

Method RestoreBracesHighlight

scintilla/src/PositionCache.cxx:176–190  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

174}
175
176void LineLayout::RestoreBracesHighlight(Range rangeLine, Position braces[], bool ignoreStyle) {
177 if (!ignoreStyle && rangeLine.ContainsCharacter(braces[0])) {
178 int braceOffset = braces[0] - rangeLine.start;
179 if (braceOffset < numCharsInLine) {
180 styles[braceOffset] = bracePreviousStyles[0];
181 }
182 }
183 if (!ignoreStyle && rangeLine.ContainsCharacter(braces[1])) {
184 int braceOffset = braces[1] - rangeLine.start;
185 if (braceOffset < numCharsInLine) {
186 styles[braceOffset] = bracePreviousStyles[1];
187 }
188 }
189 xHighlightGuide = 0;
190}
191
192int LineLayout::FindBefore(XYPOSITION x, int lower, int upper) const {
193 do {

Callers 1

PaintMethod · 0.80

Calls 1

ContainsCharacterMethod · 0.45

Tested by

no test coverage detected