Boost logo

Boost :

From: Jonathan Turkanis (turkanis_at_[hidden])
Date: 2008-02-04 12:31:40


Emre Turkay wrote:
> Hi folks,
>
> I tried to use the regex_filter for grep like functionality, but I think it
> doesn't work like that. So, here goes a grep_filter and a driver main()
> function as an example. It is an input filter which returns only the
> matching lines of the given regex.
>
> I think it can be used by others, too. Is it possible to put this class into
> distribution, as an example maybe?

Yes, that would be a good idea. I think it should go in the core
library, not in the examples. Before I put it in, though, it should be
made into a DualUserFilter (http://tinyurl.com/2rxh7m), and it should
have a test case. If you want to do this work yourself, that would be
great. Otherwise, you can just add what you have so far to the wiki here
(http://svn.boost.org/trac/boost/wiki/IostreamsFiltersAndDevices), or,
if you don't have editing permission, submit a feature request here
(http://svn.boost.org/trac/boost/newticket).

Thanks for your contribution!

> Thanks,
>
> Emre Türkay

-- 
Jonathan Turkanis
CodeRage
http://www.coderage.com

Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk