Boost logo

Boost Users :

Subject: Re: [Boost-users] Globbing library?
From: Niall Douglas (s_sourceforge_at_[hidden])
Date: 2014-08-12 22:44:49

On 13 Aug 2014 at 11:09, Gavin Lambert wrote:

> On 12/08/2014 23:24, Niall Douglas wrote:
> > I was not aware however that the NT kernel glob is any different to
> > Unix glob. It is of course totally possible that the NT kernel glob
> > is totally separate to the Windows glob which no doubt is DOS legacy
> > encumbered.
> Perhaps I am conflating different things (or just mistaken), but as far
> as I am aware Windows supports only * and ? metacharacters, while POSIX
> supports those in addition to [] and {} sets and has a different
> interpretation of \.

It turns out that answering this question of what glob characters
Windows supports for directory enumerations is not trivial.

After tracing through IFS driver sample code, I found this function

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 {}

I have added a note to AFIO about this, thanks for the catch.


ned Productions Limited Consulting

Boost-users list run by williamkempf at, kalb at, bjorn.karlsson at, gregod at, wekempf at