From f9dbc2b9f6bc8f0676da7493aed0d43ee2ed466b Mon Sep 17 00:00:00 2001 From: nyamatongwe Date: Wed, 27 Apr 2011 14:13:12 +1000 Subject: Updated regex documentation. --- doc/ScintillaDoc.html | 18 ++++++++---------- 1 file changed, 8 insertions(+), 10 deletions(-) (limited to 'doc') diff --git a/doc/ScintillaDoc.html b/doc/ScintillaDoc.html index 62f8a6eb9..b6f4fcb39 100644 --- a/doc/ScintillaDoc.html +++ b/doc/ScintillaDoc.html @@ -79,7 +79,7 @@

Scintilla Documentation

-

Last edited 20/April/2011 NH

+

Last edited 27/April/2011 NH

There is an overview of the internal design of Scintilla.
@@ -625,10 +625,9 @@ struct Sci_TextRange { -

If SCFIND_REGEXP is not included in the searchFlags, you can +

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 SCFIND_REGEXP is included, searches are always - from a lower position to a higher position, even if the search range is backwards.

+ search range before the start.

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.

@@ -772,9 +772,7 @@ struct Sci_TextToFind {

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.

+ the 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