From cbea81eede4960fe70ff8da30c711df26b229287 Mon Sep 17 00:00:00 2001 From: nyamatongwe Date: Wed, 4 Jan 2006 03:17:54 +0000 Subject: Added explanation of target range after replacement for #1395006. --- doc/ScintillaDoc.html | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'doc') 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 {

SCI_REPLACETARGET(int length, const char *text)
If length is -1, text is a zero terminated string, otherwise - length sets the number of character to replace the target with. The return value + length 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.
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.

@@ -774,7 +776,9 @@ struct TextToFind { text is a zero terminated string, otherwise length is the number of characters to use. The replacement string is formed from the text string with any sequences of \1 through \9 replaced by tagged matches from the most recent regular - expression search. The return value is the length of the replacement string.

+ expression search. + After replacement, the target range refers to the replacement text. + The return value is the length of the replacement string.

See also: SCI_FINDTEXT

-- cgit v1.2.3