Jump to page: 1 2
Thread overview
WildCard expansion available
Mar 18, 2004
larry cowan
Mar 18, 2004
Helmut Leitner
Mar 18, 2004
larrycowan
Mar 18, 2004
Matthew
Mar 19, 2004
larry cowan
Mar 19, 2004
Matthew
Mar 21, 2004
Walter
Mar 22, 2004
Matthew
WildCard expansion
Mar 23, 2004
larry cowan
WildCard expansion
Mar 23, 2004
larry cowan
Mar 23, 2004
Matthew
Mar 23, 2004
larry cowan
Mar 23, 2004
Matthew
Mar 23, 2004
larry cowan
Mar 24, 2004
larry cowan
Mar 19, 2004
larry cowan
Mar 19, 2004
Helmut Leitner
March 18, 2004
I have added a (completed) project to Wiki4d - wildcard filename expansions. How can I deliver the modules?  Can I put them on the Wiki? or???

Andy - the versions I sent you a while back are obsolete now.


March 18, 2004

larry cowan wrote:
> 
> I have added a (completed) project to Wiki4d - wildcard filename expansions. How can I deliver the modules?  Can I put them on the Wiki? or???

You can upload them at "Preferences / Upload directory"
Answer login request with
  username=duser
  password=duser

Currently there is one common upload directory. We can register individual users with separate directories if there is a need.

-- 
Helmut Leitner    leitner@hls.via.at
Graz, Austria   www.hls-software.com
March 18, 2004
Thanks.

In article <4059EED5.A44E2DD4@wikiservice.at>, Helmut Leitner says...
>
>
>
>larry cowan wrote:
>> 
>> I have added a (completed) project to Wiki4d - wildcard filename expansions. How can I deliver the modules?  Can I put them on the Wiki? or???
> 
>You can upload them at "Preferences / Upload directory" Answer login request with
>  username=duser
>  password=duser
>
>Currently there is one common upload directory. We can register individual users with separate directories if there is a need.
>
>-- 
>Helmut Leitner    leitner@hls.via.at
>Graz, Austria   www.hls-software.com


March 18, 2004
I hadn't realised anyone was working on this.

I am wanting some smart and fast wildcard expansion stuff for recls, and was thinking I might do that myself in time for the next column (which, believe it or not, is the September 2004 one; such is the world of in-print publishing.). Unfortunately, it has to be in C or C++.

Larry, once your lib is (correctness and performance) tested in D, would you be interested in porting it to C/C++, or helping me do so. The payoff is that I can wax lyrical about your skills in CUJ, and that your code will be running in the increasing number of languages for which recls is available - Ruby is the one I'm currently doing, but there are lots more to come. :)

Even better would be to do a C++/template version which we can incorporate into STLSoft.

Interested?

Cheers

Matthew Wilson

Synesis Software; Custom Software Solutions
    (www.synesis.com.au)
Contributing editor, C/C++ Users Journal
    (www.synesis.com.au/articles.html#columns)
STLSoft moderator
    (http://www.stlsoft.org)


"Helmut Leitner" <helmut.leitner@wikiservice.at> wrote in message news:4059EED5.A44E2DD4@wikiservice.at...
>
>
> larry cowan wrote:
> >
> > I have added a (completed) project to Wiki4d - wildcard filename
expansions.
> > How can I deliver the modules?  Can I put them on the Wiki? or???
>
> You can upload them at "Preferences / Upload directory"
> Answer login request with
>   username=duser
>   password=duser
>
> Currently there is one common upload directory. We can register individual users with separate directories if there is a need.
>
> -- 
> Helmut Leitner    leitner@hls.via.at
> Graz, Austria   www.hls-software.com


March 19, 2004
Yes.  I was thinking of doing a C or C++ version for the compiler.  Walter has "expand(arg)" in there but commented out.  Could do C version in my sleep, but would rather do it in C++, and a template version I could take some advice on.  Why templated?  I have only used that where I wanted to float the type - doesn't seem apropos here.

In article <c3ctkg$1e3p$1@digitaldaemon.com>, Matthew says...
>
>I hadn't realised anyone was working on this.
>
>I am wanting some smart and fast wildcard expansion stuff for recls, and was thinking I might do that myself in time for the next column (which, believe it or not, is the September 2004 one; such is the world of in-print publishing.). Unfortunately, it has to be in C or C++.
>
>Larry, once your lib is (correctness and performance) tested in D, would you be interested in porting it to C/C++, or helping me do so. The payoff is that I can wax lyrical about your skills in CUJ, and that your code will be running in the increasing number of languages for which recls is available - Ruby is the one I'm currently doing, but there are lots more to come. :)
>
>Even better would be to do a C++/template version which we can incorporate into STLSoft.
>
>Interested?
>
>Cheers
>
>Matthew Wilson
>
>Synesis Software; Custom Software Solutions
>    (www.synesis.com.au)
>Contributing editor, C/C++ Users Journal
>    (www.synesis.com.au/articles.html#columns)
>STLSoft moderator
>    (http://www.stlsoft.org)
>
>
>"Helmut Leitner" <helmut.leitner@wikiservice.at> wrote in message news:4059EED5.A44E2DD4@wikiservice.at...
>>
>>
>> larry cowan wrote:
>> >
>> > I have added a (completed) project to Wiki4d - wildcard filename
>expansions.
>> > How can I deliver the modules?  Can I put them on the Wiki? or???
>>
>> You can upload them at "Preferences / Upload directory"
>> Answer login request with
>>   username=duser
>>   password=duser
>>
>> Currently there is one common upload directory. We can register individual users with separate directories if there is a need.
>>
>> -- 
>> Helmut Leitner    leitner@hls.via.at
>> Graz, Austria   www.hls-software.com
>
>


March 19, 2004
> Yes.  I was thinking of doing a C or C++ version for the compiler.  Walter has "expand(arg)" in there but commented out.  Could do C version in my sleep, but would rather do it in C++, and a template version I could take some advice on.

I'd like to see/help it

>  Why templated?  I have only used that where I wanted to
> float the type - doesn't seem apropos here.

I have a little experience in templates, if you need it.

>
> In article <c3ctkg$1e3p$1@digitaldaemon.com>, Matthew says...
> >
> >I hadn't realised anyone was working on this.
> >
> >I am wanting some smart and fast wildcard expansion stuff for recls, and
was
> >thinking I might do that myself in time for the next column (which,
believe
> >it or not, is the September 2004 one; such is the world of in-print publishing.). Unfortunately, it has to be in C or C++.
> >
> >Larry, once your lib is (correctness and performance) tested in D, would
you
> >be interested in porting it to C/C++, or helping me do so. The payoff is that I can wax lyrical about your skills in CUJ, and that your code will
be
> >running in the increasing number of languages for which recls is
available -
> >Ruby is the one I'm currently doing, but there are lots more to come. :)
> >
> >Even better would be to do a C++/template version which we can
incorporate
> >into STLSoft.
> >
> >Interested?
> >
> >Cheers
> >
> >Matthew Wilson
> >
> >Synesis Software; Custom Software Solutions
> >    (www.synesis.com.au)
> >Contributing editor, C/C++ Users Journal
> >    (www.synesis.com.au/articles.html#columns)
> >STLSoft moderator
> >    (http://www.stlsoft.org)
> >
> >
> >"Helmut Leitner" <helmut.leitner@wikiservice.at> wrote in message news:4059EED5.A44E2DD4@wikiservice.at...
> >>
> >>
> >> larry cowan wrote:
> >> >
> >> > I have added a (completed) project to Wiki4d - wildcard filename
> >expansions.
> >> > How can I deliver the modules?  Can I put them on the Wiki? or???
> >>
> >> You can upload them at "Preferences / Upload directory"
> >> Answer login request with
> >>   username=duser
> >>   password=duser
> >>
> >> Currently there is one common upload directory. We can register individual users with separate directories if there is a need.
> >>
> >> -- 
> >> Helmut Leitner    leitner@hls.via.at
> >> Graz, Austria   www.hls-software.com
> >
> >
>
>


March 19, 2004
Have used it - code is posted as wildcard.zip.  It does seem a bit strange to have the link say "Upload:duser/wildcard.zip" though.  Is there a way to change the text on the link? or change the "Upload" name to "Code" or something like that.

In article <4059EED5.A44E2DD4@wikiservice.at>, Helmut Leitner says...
>
>
>
>larry cowan wrote:
>> 
>> I have added a (completed) project to Wiki4d - wildcard filename expansions. How can I deliver the modules?  Can I put them on the Wiki? or???
> 
>You can upload them at "Preferences / Upload directory" Answer login request with
>  username=duser
>  password=duser
>
>Currently there is one common upload directory. We can register individual users with separate directories if there is a need.
>
>-- 
>Helmut Leitner    leitner@hls.via.at
>Graz, Austria   www.hls-software.com


March 19, 2004

larry cowan wrote:
> 
> Have used it - code is posted as wildcard.zip.  It does seem a bit strange to have the link say "Upload:duser/wildcard.zip" though.  Is there a way to change the text on the link? or change the "Upload" name to "Code" or something like that.

This way better?
  <http://www.prowiki.org/wiki4d/wiki.cgi?WildCard>

-- 
Helmut Leitner    leitner@hls.via.at
Graz, Austria   www.hls-software.com
March 21, 2004
"Matthew" <matthew@stlsoft.org> wrote in message news:c3ctkg$1e3p$1@digitaldaemon.com...
> I am wanting some smart and fast wildcard expansion stuff for recls, and
was
> thinking I might do that myself in time for the next column (which,
believe
> it or not, is the September 2004 one; such is the world of in-print publishing.). Unfortunately, it has to be in C or C++.

Here's one way to do wildcard expansion using existing phobos modules:

void findCppFiles(char[] fullpath, char[] directory)
{
   char[][] dirlist = std.file.listdir(fullpath);

   foreach (char[] fname; dirlist)
   {
      if (std.file.isfile(std.path.join(fullpath, fname))
         && std.path.fnmatch(fname, "*.cpp"))
      {
            printf("file: '%.*s'\n", fname);
      }
   }
}


March 22, 2004
"Walter" <walter@digitalmars.com> wrote in message news:c3jdgm$93l$1@digitaldaemon.com...
>
> "Matthew" <matthew@stlsoft.org> wrote in message news:c3ctkg$1e3p$1@digitaldaemon.com...
> > I am wanting some smart and fast wildcard expansion stuff for recls, and
> was
> > thinking I might do that myself in time for the next column (which,
> believe
> > it or not, is the September 2004 one; such is the world of in-print publishing.). Unfortunately, it has to be in C or C++.
>
> Here's one way to do wildcard expansion using existing phobos modules:
>
> void findCppFiles(char[] fullpath, char[] directory)
> {
>    char[][] dirlist = std.file.listdir(fullpath);
>
>    foreach (char[] fname; dirlist)
>    {
>       if (std.file.isfile(std.path.join(fullpath, fname))
>          && std.path.fnmatch(fname, "*.cpp"))
>       {
>             printf("file: '%.*s'\n", fname);
>       }
>    }
> }

Cheers, mate, but I need it in C. I think Larry's going to do it in C, and then I can potentially include this in STLSoft for C++ folks.


« First   ‹ Prev
1 2