regexxer r604 - in trunk: . src



Author: daniel
Date: 2007-01-06 23:47:02 +0000 (Sat, 06 Jan 2007)
New Revision: 604
ViewCVS link: http://svn.gnome.org/viewcvs/regexxer?rev=604&view=rev

Modified:
   trunk/ChangeLog
   trunk/src/filebuffer.cc
   trunk/src/pcreshell.cc
   trunk/src/pcreshell.h
Log:
* src/pcreshell.h ({Compile,Match}Options): Eeek, as it turns out
the flag ANCHORED (and probably others too) are valid flags at both
compile time and match time.  Move ANCHORED from CompileOptions to
MatchOptions as I need it there for the following /g matching fix.
These enumerations should of course be properly namespaced instead;
this is just a quick hack for now.
* src/pcreshell.cc: Rename a couple of variables to improve code
clarity.

* src/filebuffer.cc (FileBuffer::find_matches): Set the ANCHORED
flag in addition to the NOT_EMPTY flag if the previous match was
empty in /g mode.  This matches the algorithm outlined in recent
versions of the PCRE documentation to mimic the behavior of Perl.





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]