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

Method EnsureLength

scintilla/src/SplitVector.h:186–190  ·  view source on GitHub ↗

Ensure at least length elements allocated, appending zero valued elements if needed.

Source from the content-addressed store, hash-verified

184 /// Ensure at least length elements allocated,
185 /// appending zero valued elements if needed.
186 void EnsureLength(int wantedLength) {
187 if (Length() < wantedLength) {
188 InsertValue(Length(), wantedLength - Length(), 0);
189 }
190 }
191
192 /// Insert text into the buffer from an array.
193 void InsertFromArray(int positionToInsert, const T s[], int positionFrom, int insertLength) {

Callers 6

InsertLineMethod · 0.80
SetLineStateMethod · 0.80
GetLineStateMethod · 0.80
SetTextMethod · 0.80
SetStyleMethod · 0.80
SetStylesMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected