Opened 15 years ago

Closed 14 years ago

#1627 closed Feature Requests (fixed)

Add a grep filter

Reported by: Jonathan Turkanis Owned by: Jonathan Turkanis
Milestone: Boost 1.36.0 Component: iostreams
Version: Boost 1.34.1 Severity: Problem
Keywords: Cc:

Description


Attachments (3)

grep.hpp (2.8 KB ) - added by Jonathan Turkanis 15 years ago.
submission by emreturkay@…
grep.2.hpp (2.8 KB ) - added by Emre Turkay <emreturkay@…> 15 years ago.
The one with the workaround for VC.
grep_filter_driver.cpp (788 bytes ) - added by Emre Turkay <emreturkay@…> 15 years ago.
A test code for the grep_filter.

Download all attachments as: .zip

Change History (7)

by Jonathan Turkanis, 15 years ago

Attachment: grep.hpp added

submission by emreturkay@…

by Emre Turkay <emreturkay@…>, 15 years ago

Attachment: grep.2.hpp added

The one with the workaround for VC.

by Emre Turkay <emreturkay@…>, 15 years ago

Attachment: grep_filter_driver.cpp added

A test code for the grep_filter.

comment:3 by Jonathan Turkanis, 14 years ago

Status: newassigned

I have implemented grep_filter in [45833]. I still need to add tests for the member function count(), returning the number of lines matched, and am considering removing the 'options' constructor parameter and replacing it with a boolean parameter 'invert'

As soon as this is done, I will document the filter and close this ticket

comment:4 by Jonathan Turkanis, 14 years ago

Resolution: fixed
Status: assignedclosed

I have decided to keep the options parameter to the grep filter constructor, so more options can be added in the future.

Initial documentation has been added (see [45873] and [45875])

Note: See TracTickets for help on using tickets.