[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [DotGNU]Pattern Matching in System.IO.Directory

From: Stephen Compall
Subject: Re: [DotGNU]Pattern Matching in System.IO.Directory
Date: Fri, 01 Nov 2002 18:04:34 -0600
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.2b) Gecko/20021028

Charles Shuller wrote:
Several of the GetFile* functions actually accept a string called 'Pattern'. Unless I'm missing something, there is no real definition for how pattern should work, but the spec implies, when it states path seperators are not allowed, that the Pattern is a generic 'GLOB' thing. For instance, foo.* or *.bar or ?

I would much rather implement a full blown regexp implementation, using libc's backing regexp library.

Why not both? Put an Icall in pnetlib that uses the libc glob function (or calls support/ILglob or something like that), then put the better version in dotgnu-base.

Stephen Compall
Also known as S11001001
DotGNU `Contributor' --

Sometimes I think that perhaps one of the best things I could do with
my life is: find a gigantic pile of proprietary software that was a
trade secret, and start handing out copies on a street corner so it
wouldn't be a trade secret any more, and perhaps that would be a much
more efficient way for me to give people new free software than
actually writing it myself; but everyone is too cowardly to even take
        -- RMS, Lecture at KTH (Sweden), 30 October 1986

reply via email to

[Prev in Thread] Current Thread [Next in Thread]