From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-0.3 required=5.0 tests=BAYES_00, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: 103376,6bf1c4b845bd2160 X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news3.google.com!feeder.news-service.com!feeder.erje.net!news.musoftware.de!wum.musoftware.de!news.weisnix.org!newsfeed.ision.net!newsfeed2.easynews.net!ision!newsfeed.arcor.de!newsspool2.arcor-online.net!news.arcor.de.POSTED!not-for-mail From: "Dmitry A. Kazakov" Subject: Re: What about a glob standard method in Ada.Command_Line ? Newsgroups: comp.lang.ada User-Agent: 40tude_Dialog/2.0.15.1 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Reply-To: mailbox@dmitry-kazakov.de Organization: cbb software GmbH References: <4c6f9837$0$5420$ba4acef3@reader.news.orange.fr> <4c739e76$0$6992$9b4e6d93@newsspool4.arcor-online.net> Date: Tue, 24 Aug 2010 16:24:11 +0200 Message-ID: <152a2z5en4z2o$.xjsuqr7s8yak$.dlg@40tude.net> NNTP-Posting-Date: 24 Aug 2010 16:24:09 CEST NNTP-Posting-Host: 99770e33.newsspool1.arcor-online.net X-Trace: DXC=lDBG0a^@=4B[kmHKHnaEnMic==]BZ:afN4Fo<]lROoRA<`=YMgDjhgB^GM=LloHJF@[6LHn;2LCVN[6FmbaBT?7@ X-Complaints-To: usenet-abuse@arcor.de Xref: g2news1.google.com comp.lang.ada:13702 Date: 2010-08-24T16:24:09+02:00 List-Id: On Tue, 24 Aug 2010 12:27:01 +0200, Georg Bauhaus wrote: > Maybe the following change can lift Directories.Start_Search > from implementation defined to standard? Assuming a simplified > Ada style RE package based on Strings.Maps etc., and a Pattern_Type: > > procedure Start_Search > (Search : in out Search_Type; > Directory : in String; > Matcher : access function (Pattern : Pattern_Type) return Boolean; > Filter : in Filter_Type := (others => True)); You just do not need patterns in directory search. The first reason is that the underlying OS does not support that arbitrary stuff anyway. Another, more important reason is that real-life search would use filters based many criteria, e.g. content, and patterns beyond the scope of RE, especially when neither the name encoding nor case-sensitivity specified. -- Regards, Dmitry A. Kazakov http://www.dmitry-kazakov.de