Thread overview | |||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
March 18, 2004 WildCard expansion available | ||||
---|---|---|---|---|
| ||||
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 Re: WildCard expansion available | ||||
---|---|---|---|---|
| ||||
Posted in reply to larry cowan | 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 Re: WildCard expansion available | ||||
---|---|---|---|---|
| ||||
Posted in reply to Helmut Leitner | 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 Re: WildCard expansion available | ||||
---|---|---|---|---|
| ||||
Posted in reply to Helmut Leitner | 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 Re: WildCard expansion available | ||||
---|---|---|---|---|
| ||||
Posted in reply to Matthew | 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 Re: WildCard expansion available | ||||
---|---|---|---|---|
| ||||
Posted in reply to larry cowan | > 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 Re: WildCard expansion available | ||||
---|---|---|---|---|
| ||||
Posted in reply to Helmut Leitner | 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 Re: WildCard expansion available | ||||
---|---|---|---|---|
| ||||
Posted in reply to larry cowan | 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 Re: WildCard expansion available | ||||
---|---|---|---|---|
| ||||
Posted in reply to Matthew | "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 Re: WildCard expansion available | ||||
---|---|---|---|---|
| ||||
Posted in reply to Walter | "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. |
Copyright © 1999-2021 by the D Language Foundation