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

Method ExtendStyleRange

scintilla/src/Document.cxx:1992–2003  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1990}
1991
1992int Document::ExtendStyleRange(int pos, int delta, bool singleLine) {
1993 int sStart = cb.StyleAt(pos);
1994 if (delta < 0) {
1995 while (pos > 0 && (cb.StyleAt(pos) == sStart) && (!singleLine || !IsLineEndChar(cb.CharAt(pos))))
1996 pos--;
1997 pos++;
1998 } else {
1999 while (pos < (Length()) && (cb.StyleAt(pos) == sStart) && (!singleLine || !IsLineEndChar(cb.CharAt(pos))))
2000 pos++;
2001 }
2002 return pos;
2003}
2004
2005static char BraceOpposite(char ch) {
2006 switch (ch) {

Callers 1

SetHotSpotRangeMethod · 0.80

Calls 3

IsLineEndCharFunction · 0.70
StyleAtMethod · 0.45
CharAtMethod · 0.45

Tested by

no test coverage detected