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

Method SetStyleFor

scintilla/src/Document.cxx:1676–1692  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1674}
1675
1676bool SCI_METHOD Document::SetStyleFor(int length, char style) {
1677 if (enteredStyling != 0) {
1678 return false;
1679 } else {
1680 enteredStyling++;
1681 style &= stylingMask;
1682 int prevEndStyled = endStyled;
1683 if (cb.SetStyleFor(endStyled, length, style, stylingMask)) {
1684 DocModification mh(SC_MOD_CHANGESTYLE | SC_PERFORMED_USER,
1685 prevEndStyled, length);
1686 NotifyModified(mh);
1687 }
1688 endStyled += length;
1689 enteredStyling--;
1690 return true;
1691 }
1692}
1693
1694bool SCI_METHOD Document::SetStyles(int length, const char *styles) {
1695 if (enteredStyling != 0) {

Callers 3

ColourToMethod · 0.45
ClearDocumentStyleMethod · 0.45
WndProcMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected