Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.programming > #304 > unrolled thread

globbing source

Started byOwner <Owner@Owner-PC.com>
First post2011-05-11 20:52 -0400
Last post2011-05-11 23:50 -0700
Articles 3 — 3 participants

Back to article view | Back to comp.programming


Contents

  globbing source Owner <Owner@Owner-PC.com> - 2011-05-11 20:52 -0400
    Re: globbing source Vaclav Haisman <v.haisman@sh.cvut.cz> - 2011-05-12 06:37 +0200
    Re: globbing source tm <thomas.mertes@gmx.at> - 2011-05-11 23:50 -0700

#304 — globbing source

FromOwner <Owner@Owner-PC.com>
Date2011-05-11 20:52 -0400
Subjectglobbing source
Message-ID<pan.2011.05.12.00.52.31.355000@Owner-PC.com>
I'm looking for source of globbing.  because win 7 does not
change * to file names in commmandline.

So, looks like I have build one.

can anyone give me help by pointing at somewhere start with?

[toc] | [next] | [standalone]


#306

FromVaclav Haisman <v.haisman@sh.cvut.cz>
Date2011-05-12 06:37 +0200
Message-ID<4DCB6414.6090107@sh.cvut.cz>
In reply to#304
Owner wrote, On 12.5.2011 2:52:
> I'm looking for source of globbing.  because win 7 does not
> change * to file names in commmandline.
> 
> So, looks like I have build one.
> 
> can anyone give me help by pointing at somewhere start with?
Try the FreeBSD source glob():
<http://svnweb.freebsd.org/base/head/lib/libc/gen/glob.c?view=markup> and
<http://svnweb.freebsd.org/base/head/include/glob.h?view=markup>

-- 
VH

[toc] | [prev] | [next] | [standalone]


#308

Fromtm <thomas.mertes@gmx.at>
Date2011-05-11 23:50 -0700
Message-ID<1bd99274-a789-4002-bdf9-431e950ed867@l30g2000vbn.googlegroups.com>
In reply to#304
On 12 Mai, 02:52, Owner <Ow...@Owner-PC.com> wrote:
> I'm looking for source of globbing.  because win 7 does not
> change * to file names in commmandline.
>
> So, looks like I have build one.
>
> can anyone give me help by pointing at somewhere start with?

Read the files in the directory and compare them with a
wildcard match. See:

  http://seed7.sourceforge.net/algorith/string.htm#wildcard_match

The wildcard match itself is simple, but you probably
need to translate the algorithm to your language.


Greetings Thomas Mertes

--
Seed7 Homepage:  http://seed7.sourceforge.net
Seed7 - The extensible programming language: User defined statements
and operators, abstract data types, templates without special
syntax, OO with interfaces and multiple dispatch, statically typed,
interpreted or compiled, portable, runs under linux/unix/windows.

[toc] | [prev] | [standalone]


Back to top | Article view | comp.programming


csiph-web