From cfd41cc94527454e2aa0c8e7d5d7b778d10ee927 Mon Sep 17 00:00:00 2001 From: nyamatongwe Date: Sun, 20 May 2001 13:56:50 +0000 Subject: Removed uncounted version of ReplaceTarget to allow for nulls in replace strings. --- include/Scintilla.h | 3 +-- include/Scintilla.iface | 17 +++++++---------- 2 files changed, 8 insertions(+), 12 deletions(-) diff --git a/include/Scintilla.h b/include/Scintilla.h index 27df91183..b22482cb7 100644 --- a/include/Scintilla.h +++ b/include/Scintilla.h @@ -284,8 +284,7 @@ typedef sptr_t (*SciFnDirect)(sptr_t ptr, unsigned int iMessage, uptr_t wParam, #define SCI_SETTARGETEND 2192 #define SCI_GETTARGETEND 2193 #define SCI_REPLACETARGET 2194 -#define SCI_REPLACETARGETCOUNTED 2195 -#define SCI_REPLACETARGETRECOUNTED 2196 +#define SCI_REPLACETARGETRE 2195 #define SCI_SEARCHINTARGET 2197 #define SCI_SETSEARCHFLAGS 2198 #define SCI_GETSEARCHFLAGS 2199 diff --git a/include/Scintilla.iface b/include/Scintilla.iface index a854203f4..884f7332b 100644 --- a/include/Scintilla.iface +++ b/include/Scintilla.iface @@ -728,21 +728,18 @@ set void SetTargetEnd=2192(position pos,) # Get the position that ends the target. get position GetTargetEnd=2193(,) -# Replace the target text with the argument text. -# If replacePatterns then looks for \d where d is between 1 and 9 -# and replaces these with the strings matched in the last search -# operation which were surrounded by \( and \). -# Returns the length of the replacement text including any change -# caused by processing the \d patterns. -fun int ReplaceTarget=2194(bool replacePatterns, string text) - # Replace the target text with the argument text. # Text is counted so it can contain nulls. -fun int ReplaceTargetCounted=2195(int length, string text) +# Returns the length of the replacement text. +fun int ReplaceTarget=2194(int length, string text) # Replace the target text with the argument text after \d processing. # Text is counted so it can contain nulls. -fun int ReplaceTargetRECounted=2196(int length, string text) +# Looks for \d where d is between 1 and 9 and replaces these with the strings +# matched in the last search operation which were surrounded by \( and \). +# Returns the length of the replacement text including any change +# caused by processing the \d patterns. +fun int ReplaceTargetRE=2195(int length, string text) # Search for a counted string in the target and set the target to the found # range. Text is counted so it can contain nulls. -- cgit v1.2.3