|
Boost Users : |
From: Beman Dawes (bdawes_at_[hidden])
Date: 2003-12-12 14:15:35
At 03:52 PM 12/9/2003, annirak_at_[hidden] wrote:
>I'm using regex_grep() to search through file contents for matches. I
want
>to read the file in blocks to keep memory use down for large files. What
I
>want to know is whether there is some way of adding the next block of
>memory to the grep where the last one left off.
I'm not a regex expert, but I think the purpose of the
match_flag_type::match_partial flag is to handle exactly the situation you
describe.
See http://www.boost.org/libs/regex/template_class_ref.htm#partial_matches
(Note that partial matches will get their own docs page in the upcoming
1.31.0 release, so the above URL will change.)
--Beman
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net