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

Method CountCharacters

scintilla/src/Document.cxx:1152–1164  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1150}
1151
1152int Document::CountCharacters(int startPos, int endPos) {
1153 startPos = MovePositionOutsideChar(startPos, 1, false);
1154 endPos = MovePositionOutsideChar(endPos, -1, false);
1155 int count = 0;
1156 int i = startPos;
1157 while (i < endPos) {
1158 count++;
1159 if (IsCrLf(i))
1160 i++;
1161 i = NextPosition(i, 1);
1162 }
1163 return count;
1164}
1165
1166int Document::FindColumn(int line, int column) {
1167 int position = LineStart(line);

Callers 1

WndProcMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected