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

Method GetLineIndentPosition

scintilla/src/Document.cxx:1117–1126  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1115}
1116
1117int Document::GetLineIndentPosition(int line) const {
1118 if (line < 0)
1119 return 0;
1120 int pos = LineStart(line);
1121 int length = Length();
1122 while ((pos < length) && IsSpaceOrTab(cb.CharAt(pos))) {
1123 pos++;
1124 }
1125 return pos;
1126}
1127
1128int Document::GetColumn(int pos) {
1129 int column = 0;

Callers 4

DrawLineMethod · 0.80
DelCharBackMethod · 0.80
IndentMethod · 0.80
WndProcMethod · 0.80

Calls 3

LineStartFunction · 0.85
IsSpaceOrTabFunction · 0.70
CharAtMethod · 0.45

Tested by

no test coverage detected