A couple of days ago I posted on Google+ a comment when I was frustrated trying to update the QUrl hostname-parsing code. Turns out that rewriting the parser wasn’t that difficult for QUrl, but dealing with hostnames is very much so. The old code in QUrl simply deals with it directly, even what’s supposed to …
Tag Archive: url
Oct 12
QUrl in Qt 5: validity
QUrl in Qt 4 tried to follow the ABNF grammar for URIs quite strictly, but it had a tolerant mode parser and, in the end, almost everything was accepted anyway. Looking into WebKit’s test, turns out that there are a lot more cases which QUrl failed to understand. In Qt 5, I’ll rewrite the parser to hopefully be even faster and accept some of those new cases, without sacrificing the conformance in compliant URIs.
Sep 19
QUrl in Qt 5: encoding
One of the classes I used to maintain in Qt was QUrl and I had worked quite extensively with KUrl previously, so I knew what was wrong with the current API. And during the Contributor Summit in Berlin, I volunteered to rewrite QUrl, to add some features KUrl needed. I described the original goals of …