diff options
author | Zufu Liu <unknown> | 2021-07-15 17:29:24 +1000 |
---|---|---|
committer | Zufu Liu <unknown> | 2021-07-15 17:29:24 +1000 |
commit | 39be73514c317e7d672e0a09862571e64f8979da (patch) | |
tree | bbfb503821368eaa608174af4532f50026e3f723 /doc/ScintillaDoc.html | |
parent | f4878568f55a9c3b6eef8cc8fad9b1aa7e8ab4ce (diff) | |
download | scintilla-mirror-39be73514c317e7d672e0a09862571e64f8979da.tar.gz |
Feature [feature-requests:#1370] Implement SCI_ALLOCATELINES to allocate indices
to hold some number of lines. This is an optimization that can decrease
reallocation overhead.
Diffstat (limited to 'doc/ScintillaDoc.html')
-rw-r--r-- | doc/ScintillaDoc.html | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/doc/ScintillaDoc.html b/doc/ScintillaDoc.html index 50409c0af..03fe95ea9 100644 --- a/doc/ScintillaDoc.html +++ b/doc/ScintillaDoc.html @@ -531,6 +531,7 @@ <a class="message" href="#SCI_GETREADONLY">SCI_GETREADONLY → bool</a><br /> <a class="message" href="#SCI_GETTEXTRANGE">SCI_GETTEXTRANGE(<unused>, Sci_TextRange *tr) → position</a><br /> <a class="message" href="#SCI_ALLOCATE">SCI_ALLOCATE(position bytes)</a><br /> + <a class="message" href="#SCI_ALLOCATELINES">SCI_ALLOCATELINES(line lines)</a><br /> <a class="message" href="#SCI_ADDTEXT">SCI_ADDTEXT(position length, const char *text)</a><br /> <a class="message" href="#SCI_ADDSTYLEDTEXT">SCI_ADDSTYLEDTEXT(position length, cell *c)</a><br /> <a class="message" href="#SCI_APPENDTEXT">SCI_APPENDTEXT(position length, const char *text)</a><br /> @@ -645,6 +646,12 @@ Allocate a document buffer large enough to store a given number of bytes. The document will not be made smaller than its current contents.</p> + <p><b id="SCI_ALLOCATELINES">SCI_ALLOCATELINES(line lines)</b><br /> + Allocate line indices to match the <code class="parameter">lines</code> argument. + This is an optimization that can prevent multiple reallocations of the indices as text is inserted + if the application can estimate the number of lines in the document. + The number of lines will not be reduced by this call.</p> + <p><b id="SCI_ADDTEXT">SCI_ADDTEXT(position length, const char *text)</b><br /> This inserts the first <code class="parameter">length</code> characters from the string <code class="parameter">text</code> |