aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authornyamatongwe <devnull@localhost>2006-01-04 03:17:54 +0000
committernyamatongwe <devnull@localhost>2006-01-04 03:17:54 +0000
commitcbea81eede4960fe70ff8da30c711df26b229287 (patch)
tree567634ebb1d54611fb79a1bfdef479e288293dc6
parent7af0e124c459443a2046236088698e93d869e702 (diff)
downloadscintilla-mirror-cbea81eede4960fe70ff8da30c711df26b229287.tar.gz
Added explanation of target range after replacement for #1395006.
-rw-r--r--doc/ScintillaDoc.html8
1 files changed, 6 insertions, 2 deletions
diff --git a/doc/ScintillaDoc.html b/doc/ScintillaDoc.html
index 49e62bbf0..0fe0b7476 100644
--- a/doc/ScintillaDoc.html
+++ b/doc/ScintillaDoc.html
@@ -764,7 +764,9 @@ struct TextToFind {
<p><b id="SCI_REPLACETARGET">SCI_REPLACETARGET(int length, const char *text)</b><br />
If <code>length</code> is -1, <code>text</code> is a zero terminated string, otherwise
- <code>length</code> sets the number of character to replace the target with. The return value
+ <code>length</code> sets the number of character to replace the target with.
+ After replacement, the target range refers to the replacement text.
+ The return value
is the length of the replacement string.<br />
Note that the recommanded way to delete text in the document is to set the target to the text to be removed,
and to perform a replace target with an empty string.</p>
@@ -774,7 +776,9 @@ struct TextToFind {
<code>text</code> is a zero terminated string, otherwise <code>length</code> is the number of
characters to use. The replacement string is formed from the text string with any sequences of
<code>\1</code> through <code>\9</code> replaced by tagged matches from the most recent regular
- expression search. The return value is the length of the replacement string.</p>
+ expression search.
+ After replacement, the target range refers to the replacement text.
+ The return value is the length of the replacement string.</p>
<p>See also: <a class="message" href="#SCI_FINDTEXT"><code>SCI_FINDTEXT</code></a></p>