|
Boost Users : |
Subject: Re: [Boost-users] Globbing library?
From: Niall Douglas (s_sourceforge_at_[hidden])
Date: 2014-08-12 07:24:14
On 12 Aug 2014 at 19:23, Gavin Lambert wrote:
> Ideally with support for both POSIX-style and Windows-style globs. (The
> former are more powerful but the latter have fewer reserved characters;
> both are useful at different times.)
>
> Where this does intersect with the filesystem, perhaps Boost.Filesystem
> could make use of it? I don't think that currently has any globbing
> support.
You are correct on this. AFIO supports kernel side globbing during
directory enumeration on Windows, with a user side emulation on POSIX
(basically fnmatch()). In fact, kernel side globbing is so quick it
is how AFIO stat's a single file entry, it simply sets the glob to an
exact match and that's three orders of magnitude faster than the
traditional way of opening a handle, reading metadata and closing the
handle.
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.
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