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

Method SetLevel

scintilla/src/PerLine.cxx:271–283  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

269}
270
271int LineLevels::SetLevel(int line, int level, int lines) {
272 int prev = 0;
273 if ((line >= 0) && (line < lines)) {
274 if (!levels.Length()) {
275 ExpandLevels(lines + 1);
276 }
277 prev = levels[line];
278 if (prev != level) {
279 levels[line] = level;
280 }
281 }
282 return prev;
283}
284
285int LineLevels::GetLevel(int line) {
286 if (levels.Length() && (line >= 0) && (line < levels.Length())) {

Callers 2

EditorMethod · 0.45
WndProcMethod · 0.45

Calls 1

LengthMethod · 0.45

Tested by

no test coverage detected