diff options
| author | nyamatongwe <unknown> | 2001-04-29 13:32:10 +0000 |
|---|---|---|
| committer | nyamatongwe <unknown> | 2001-04-29 13:32:10 +0000 |
| commit | 1bd2d31b3ce8714ddeba3d9825a8a605e55751cf (patch) | |
| tree | e5e81d31814afcd65759d81fd0ec7e375ca7603d /include | |
| parent | 47c3e67c26e19f237bab42d3a98019add82bb4b5 (diff) | |
| download | scintilla-mirror-1bd2d31b3ce8714ddeba3d9825a8a605e55751cf.tar.gz | |
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.
Diffstat (limited to 'include')
| -rw-r--r-- | include/Scintilla.h | 5 | ||||
| -rw-r--r-- | include/Scintilla.iface | 19 |
2 files changed, 24 insertions, 0 deletions
diff --git a/include/Scintilla.h b/include/Scintilla.h index b1de42cee..a19d2a1b5 100644 --- a/include/Scintilla.h +++ b/include/Scintilla.h @@ -284,6 +284,11 @@ 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_SEARCHINTARGET 2197 +#define SCI_SETSEARCHFLAGS 2198 +#define SCI_GETSEARCHFLAGS 2199 #define SCI_CALLTIPSHOW 2200 #define SCI_CALLTIPCANCEL 2201 #define SCI_CALLTIPACTIVE 2202 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) |
