From f9dbc2b9f6bc8f0676da7493aed0d43ee2ed466b Mon Sep 17 00:00:00 2001
From: nyamatongwe Last edited 20/April/2011 NH Last edited 27/April/2011 NH There is an overview of the internal design of
Scintilla. If You can
search backwards to find the previous occurrence of a search string by setting the end of the
- search range before the start. If Scintilla Documentation
-
@@ -625,10 +625,9 @@ struct Sci_TextRange {
- SCFIND_REGEXP is not included in the searchFlags, you can
+ SCFIND_REGEXP is included, searches are always
- from a lower position to a higher position, even if the search range is backwards.
In a regular expression, special characters interpreted are:
@@ -722,6 +721,8 @@ struct Sci_TextRange { +Regular expressions will only match ranges within a single line, never matching over multiple lines.
+SCI_FINDTEXT(int searchFlags, Sci_TextToFind *ttf)
This message searches for text in the document. It does not use or move the current selection.
@@ -730,9 +731,8 @@ struct Sci_TextRange {
The Sci_TextToFind structure is defined in Scintilla.h; set
chrg.cpMin and chrg.cpMax with the range of positions in the document
- to search. If SCFIND_REGEXP is not included in the flags, you can search backwards by
- setting chrg.cpMax less than chrg.cpMin. If SCFIND_REGEXP
- is included, the search is always forwards (even if chrg.cpMax is less than chrg.cpMin).
+ to search. You can search backwards by
+ setting chrg.cpMax less than chrg.cpMin.
Set the lpstrText member of Sci_TextToFind to point at a zero terminated
text string holding the search pattern. If your language makes the use of Sci_TextToFind
difficult, you should consider using SCI_SEARCHINTARGET instead.
SCI_SEARCHNEXT and SCI_SEARCHPREV search for the next and previous
occurrence of the zero terminated search string pointed at by text. The search is modified by
- the searchFlags. If you request a regular
- expression, SCI_SEARCHPREV finds the first occurrence of the search string in the
- document, not the previous one before the anchor point.
searchFlags.
The return value is -1 if nothing is found, otherwise the return value is the start position of the matching text. The selection is updated to show the matched text, but is not scrolled -- cgit v1.2.3