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

Method SetStyleAt

scintilla/src/CellBuffer.cxx:410–419  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

408}
409
410bool CellBuffer::SetStyleAt(int position, char styleValue, char mask) {
411 styleValue &= mask;
412 char curVal = style.ValueAt(position);
413 if ((curVal & mask) != styleValue) {
414 style.SetValueAt(position, static_cast<char>((curVal & ~mask) | styleValue));
415 return true;
416 } else {
417 return false;
418 }
419}
420
421bool CellBuffer::SetStyleFor(int position, int lengthStyle, char styleValue, char mask) {
422 bool changed = false;

Callers 1

SetStylesMethod · 0.80

Calls 2

ValueAtMethod · 0.45
SetValueAtMethod · 0.45

Tested by

no test coverage detected