From 09d42ffa21ce48f7ccd80c71674445bffe15cef1 Mon Sep 17 00:00:00 2001 From: nyamatongwe Date: Sun, 29 Apr 2001 13:32:10 +0000 Subject: Addition of new target methods - versions of ReplaceTarget that take counted strings to allow for nulls, SearchInTarget and Get/SetSearchFlags to use a series of calls rather than a structure. Handling of \000 in search and replace. Handling of /escapes within character ranges of regular expressions. Some handling of bare ^ and $ regular expressions. --- include/Scintilla.iface | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) (limited to 'include/Scintilla.iface') diff --git a/include/Scintilla.iface b/include/Scintilla.iface index 6764edfe2..4aaea15d4 100644 --- a/include/Scintilla.iface +++ b/include/Scintilla.iface @@ -736,6 +736,25 @@ get position GetTargetEnd=2193(,) # 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) + +# 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) + +# Search for a counted string in the target and set the target to the found +# range. Text is counted so it can contain nulls. +# Returns length of range or -1 for failure in which case target is not moved. +fun int SearchInTarget=2197(int length, string text) + +# Set the search flags used by SearchInTarget +set void SetSearchFlags=2198(int flags,) + +# Get the search flags used by SearchInTarget +get int GetSearchFlags=2199(,) + # Show a call tip containing a definition near position pos. fun void CallTipShow=2200(position pos, string definition) -- cgit v1.2.3