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

Method LineLength

scintilla/src/Document.h:107–112  ·  view source on GitHub ↗

Return number of bytes from start to before '\n' or end of text. Return 1 when start is outside text

Source from the content-addressed store, hash-verified

105 // Return number of bytes from start to before '\n' or end of text.
106 // Return 1 when start is outside text
107 size_t LineLength(size_t start) const {
108 size_t cur = start;
109 while ((cur < length) && (text[cur] != '\n'))
110 cur++;
111 return cur-start;
112 }
113 size_t StyleAt(size_t i) const {
114 return multipleStyles ? styles[i] : style;
115 }

Callers 2

WidestLineWidthFunction · 0.80
DrawAnnotationMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected