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
FsRtlIsNameInExpression():

http://msdn.microsoft.com/en-us/library/windows/hardware/ff546850(v=vs
.85).aspx

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 have added a note to AFIO about this, thanks for the catch.

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