Boost logo

Boost Users :

Subject: Re: [Boost-users] Globbing library?
From: Niall Douglas (s_sourceforge_at_[hidden])
Date: 2014-08-15 12:27:55


On 14 Aug 2014 at 18:15, Richard wrote:

> >And it would appear you are correct, * and ? are the only two common.
> >I am aware of [seq] and [!seq] for fnmatch, I am not aware of {}
> >sets.
>
> I always thought in Unix that globbing was done by the shell and not
> by the operating system. In particular, I thought {} globbing was a
> csh-ism and not an sh-ism. It's hard to tell these days now that bash
> has absorbed the useful features of all other shells.

On Windows, both the shell and filing system driver do globbing.
Specifically, when enumerating a directory you can pass a glob to
filter out entries you don't care about kernel side.

This provides an *enormous* performance improvement for directories
with many entries. Sadly the glob is very restrictive, just * and ?.

Niall

-- 
ned Productions Limited Consulting
http://www.nedproductions.biz/ 
http://ie.linkedin.com/in/nialldouglas/



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