Boost logo

Boost Users :

From: Alan Stewart (astewart_at_[hidden])
Date: 2004-01-14 09:58:35


Sounds great to me!

Rich Johnson wrote:

> Folks--
>
> Is there general interest in a "globbing" iterator?
> If so I've got one I'm willing to re-package for submission.
> (Or at least discuss with folks for improvement)
>
> If you're interested, read on:
>
> glob_iterator aggregates a directory_iterator and regex to provide
> shell-style "*", "?", "{....}", "[....]" and "[^...]" wildcarding.
>
> boost components used:
> filesystem::directory_iterator
> filesystem::path
> filter_iterator
> reg_expression
> c_regex_traits
>
> Usage example:
> //...do something to all .cpp and .c files
> glob_iterator start( "*.{c,cpp}" );
> glob_iterator end;
> while( start != end ){
> std::string filename( start->leaf() );
> //...do something with/to filename
> ++start;
> }
>
> _______________________________________________
> Boost-users mailing list
> Boost-users_at_[hidden]
> http://lists.boost.org/mailman/listinfo.cgi/boost-users
>

-- 
D. Alan Stewart
Senior Software Developer
Layton Graphics, Inc.
155 Woolco Drive
Marietta, GA 30065
Voice: 770/973-4312
Fax: 800/367-8192
http://www.layton-graphics.com

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