Uri class and parser

Adam D. Ruppe destructionator at gmail.com
Wed Oct 24 05:39:00 PDT 2012


On Tuesday, 23 October 2012 at 20:47:26 UTC, Mike van Dongen 
wrote:
> https://github.com/MikevanDongen/phobos/blob/uri-parser/std/uri.d

If you want to take any of the code from mine, feel free. It is 
struct Uri in my cgi.d:

https://github.com/adamdruppe/misc-stuff-including-D-programming-language-web-stuff/blob/master/cgi.d#L1615

My thing includes relative linking and some more parsing too. The 
ctRegex in there however, when it works it is cool, but if 
there's an error in an *other* part of the code, other module, 
doesn't call it, completely unrelated such as just making a typo 
on a local variable name... the compiler spews like 20 errors 
about ctRegex.

That's annoying. But the bug is in the compiler and only makes 
other errors uglier so I'm just ignoring it for now.


More information about the Digitalmars-d mailing list