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

Method ParaDown

scintilla/src/Document.cxx:1291–1303  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1289}
1290
1291int Document::ParaDown(int pos) {
1292 int line = LineFromPosition(pos);
1293 while (line < LinesTotal() && !IsWhiteLine(line)) { // skip non-empty lines
1294 line++;
1295 }
1296 while (line < LinesTotal() && IsWhiteLine(line)) { // skip empty lines
1297 line++;
1298 }
1299 if (line < LinesTotal())
1300 return LineStart(line);
1301 else // end of a document
1302 return LineEnd(line-1);
1303}
1304
1305CharClassify::cc Document::WordCharClass(unsigned char ch) {
1306 if ((SC_CP_UTF8 == dbcsCodePage) && (!UTF8IsAscii(ch)))

Callers 1

ParaUpOrDownMethod · 0.80

Calls 2

LineStartFunction · 0.85
LineEndFunction · 0.85

Tested by

no test coverage detected